Re: HTTP_Client and files
| From: | Andrew Nagy | Date: | Thu, 11 Nov 2004 14:26:00 +0000 |
| Subject: | Re: HTTP_Client and files | ||
| References: | 1 2 | Groups: | php.pear.general |
| Request: | Send a blank email to pear-general+get-15441@lists.php.net to get a copy of this message | ||
Justin Patrin wrote:
On Wed, 10 Nov 2004 16:46:29 -0500, Andrew S. Nagy <asnagy@webitecture.org> wrote:Yes, I want to be able to download a remote file that is sent via a web form with HTTP_Client. The form upon submit sends a file to the client for download, I would like to be able to download this file using HTTP_Client. When I tried it, I just got the body field empty and no data. Can you give me an example as how to do this? Thanks AndrewIs 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.If you're trying to download a remote file, yes HTTP_Client (and HTTP_Request) can do this. Could you give more info?