Re: [PHP] I need help with PHP, cURL, and POST

2007-01-03 Thread Richard Lynch
On Tue, January 2, 2007 8:56 pm, Charley wrote: > What do you mean about the submit input? I > thought that was just a text link to cause > the form to be submitted when clicked. I > didn't know that it sent anything to the > server. (As you can tell, I don't know > anything about asp except wha

[PHP] I need help with PHP, cURL, and POST

2007-01-02 Thread Charley
It works! All I did was comment out the curl_setopt($ch, CURLOPT_FOLLOWLOCATION, 1) and set up the post and post fields options. I used the query string format. I may try the array later, but since this works, I'm going to use it for now. Thanks everybody! -- PHP General Mailing List (

[PHP] I need help with PHP, cURL, and POST

2007-01-02 Thread Charley
Richard, Thanks for your answer. What do you mean about the submit input? I thought that was just a text link to cause the form to be submitted when clicked. I didn't know that it sent anything to the server. (As you can tell, I don't know anything about asp except what it stands for.)

Re: [PHP] I need help with PHP, cURL, and POST

2007-01-02 Thread Richard Lynch
On Tue, January 2, 2007 9:23 am, Charley wrote: > ... > > */ > > $pf = "AccountID=XX"; ... > $pf .= "&paymentidfilter="; You are missing the "Submit" input, and ASP being ASP, it probably was programmed to expect it, and will puke without it. You also have added a paymen

[PHP] I need help with PHP, cURL, and POST

2007-01-02 Thread Charley
I apologize for the previous message. This one should wrap better. To Ligaya and Jochm, Thanks for your answers. I have read and tried what several tutorials say to do. I have used both arrays and query strings to specify the post fields. I had not seen the tutorial Ligaya mentioned, but

[PHP] I need help with PHP, cURL, and POST

2007-01-02 Thread Charley
To Ligaya and Jochm, Thanks for your answers. I have read and tried what several tutorials say to do. I have used both arrays and query strings to specify the post fields. I had not seen the tutorial Ligaya mentioned, but it was not essentially different from the others I have seen. And the

RE: [PHP] I need help with PHP, cURL, and POST

2007-01-02 Thread Ligaya A. Turmelle
@lists.php.net Subject: [PHP] I need help with PHP, cURL, and POST I am an experienced programmer who is just learning php and curl. I have tried for several days to figure out how to use curl with POST to get history information from e-gold. The following script, which I guess uses GET works when

Re: [PHP] I need help with PHP, cURL, and POST

2007-01-02 Thread Jochem Maas
Charley wrote: > I am an experienced programmer who is just learning php and curl. > ... > > Would someone be interested in showing me exactly what I need to modify this > script to work with POST? the interest is 10%/week ;-) ... read on ... > > session_start(); > /* > https://www.e-

[PHP] I need help with PHP, cURL, and POST

2007-01-02 Thread Charley
I am an experienced programmer who is just learning php and curl. I have tried for several days to figure out how to use curl with POST to get history information from e-gold. The following script, which I guess uses GET works when have appropriate stuff in them. But no matter wh