RE: [PHP] cURL in an exec() MORE...
| From: | Jay Blanchard | Date: | Mon, 01 Jul 2002 15:25:55 +0000 |
| Subject: | RE: [PHP] cURL in an exec() MORE... | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-104681@lists.php.net to get a copy of this message | ||
[snip]
Thanks Jason, I fixed that and still does not work. So I am trying this;
$curlline("curl -d
\"name=myname&password=mypassword&btnsubmit=submit\" -s -o ".$listline."
https://theserver.com/download/".$listline."");
print($curlline); <----this looks fine
exec($curline);
[/snip]
The cURL statement has to be on one line, when I view the source the
statement appears to be broken up, i.e.
curl -d "name=myname&password=mypassword&btnsubmit=submit" -s -o
2002060704.zip
https://theserver/download/2002060704.zip
OK, so how do I keep a long line from breaking up without inserting special
characters? Maybe this why cURL is failing.
Jay