HTTP_Request Question
| From: | Tomasz Rakowski | Date: | Thu, 11 Oct 2007 14:45:48 +0000 |
| Subject: | HTTP_Request Question | ||
| Groups: | php.pear.general | ||
| Request: | Send a blank email to pear-general+get-28087@lists.php.net to get a copy of this message | ||
Hi,
I'm trying to use the HTTP_Request, and I would like to know if there is a
way to make a "PUT" request and stream contents of a file.
Form what I could see, the HTTP_Request::addFile allows to add a file,
however, when you send the request, the file is read into a variable and
later sent in the body. This method however, does not allow to send a large
files, as they take too much memory.
I think it would be the best to have the ability to use something simillar
to HTTP_Request_DownloadListener, some sort of HTTP_Request_UploadListener.
Is there an existing solution for that ?
Thanks,
Tomasz Rakowski