[PHP] Syntax for CURL

2001-05-21 Thread Todd Cary
I need to send a POST string to a HTTPS server and receive the returned string. Does anyone know the correct syntax for this? I have looked at the HELP a www.php.net; however, I am not completely clear on what I need to put into the curl_setopt(). Todd -- Todd Cary Ariste Software [EMAIL

Re: [PHP] Syntax for CURL

2001-05-21 Thread Tolga \thorr\ Orhon
The script below is working fine for me: $data2send = field1=value1field2=value2; $ch = curl_init(); curl_setopt($ch, CURLOPT_URL,https://www.postside.com/postpage;); curl_setopt($ch, CURLOPT_RETURNTRANSFER,1); curl_setopt ($ch, CURLOPT_USERAGENT, Mozilla/4.0 (compatible; MSIE 5.01; Windows NT