Re: HTTP_Client and files
| From: | Justin Patrin | Date: | Wed, 10 Nov 2004 23:05:39 +0000 |
| Subject: | Re: HTTP_Client and files | ||
| References: | 1 | Groups: | php.pear.general |
| Request: | Send a blank email to pear-general+get-15429@lists.php.net to get a copy of this message | ||
On Wed, 10 Nov 2004 16:46:29 -0500, Andrew S. Nagy
<asnagy@webitecture.org> wrote:
> Is it possible to use HTTP_Client to download files that are posted by a
> form? At the moment, I get a blank body value when I try it, unless I
> am doing something wrong.
>
> I would like to automate a process of downloading files via a web form,
> similar to fopen where I can get the data back in a string.
>
Are you saying that you're using HTTP_Client to post a document to a
form and are then trying to get the file's contents back? If so, why
not just read it from the local filesystem?
If you're trying to download a remote file, yes HTTP_Client (and
HTTP_Request) can do this. Could you give more info?
--
Justin Patrin