cURL / Mailing Lists / curl-users / Single Mail

curl-users

Using cURL with PHP

From: Jay Blanchard <jay.blanchard_at_niicommunications.com>
Date: Mon, 1 Jul 2002 15:37:03 -0500

I can do this;

<?php
exec("curl -d \"name=myname&password=mypassword&btnsubmit=submit\" -s -o
cdrlist.html https://theserver.com/list.html");
?>

but why can't I do this

<?php
exec("curl -d \"name=myname&password=mypassword&btnsubmit=submit\" -s -o
".$listline." https://theserver.com/download/".$listline."");
?>

The only change is that I have now made the php variable $listline available
as there is a routine that steps through each file from the list. I can
print the line out and it looks correct. Am I missing something?

Thanks!

Jay

-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
Received on 2002-07-01