Skip to content
This repository has been archived by the owner on Jun 27, 2022. It is now read-only.

Fix broken save_to examples #63

Closed
wants to merge 1 commit into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions docs/http-client/request.rst
Original file line number Diff line number Diff line change
Expand Up @@ -60,10 +60,10 @@ option of a request:
.. code-block:: php

// Send the response body to a file
$request = $client->get('http://test.com', array(), array('save_to' => '/path/to/file'));
$request = $client->get('http://test.com', array('save_to' => '/path/to/file'));

// Send the response body to an fopen resource
$request = $client->get('http://test.com', array(), array('save_to' => fopen('/path/to/file', 'w')));
$request = $client->get('http://test.com', array('save_to' => fopen('/path/to/file', 'w')));

HEAD requests
~~~~~~~~~~~~~
Expand Down