Hello all, i have some problems with curl-7.7 in php-4.0.4. When i post to a https- Server through curl the returned data is corrupted. I post to a transaction-server. The servers response is encrypted data. I actually post all variables through the URL. When i try to post the vars through the "CURLOPT_POST" and "CURLOPT_POSTFIELDS" directives the server couldn't get the values. What's wrong ?? Here is my script ########################### $user_agent="Mozilla/4.0 (compatible; MSIE 5.01; Windows NT 5.0)" ; $URL="https://www.netkauf.de/paygate/direct.asp" ; $Send_Opts="HaendlerID=".$HaendlerID."&Len=".$Len."&Data=".$Data ; $URL=$URL."?".$Send_Opts ; function post_data($URL) { $ch=curl_init(); curl_setopt($ch, CURLOPT_URL,"$URL"); curl_setopt($ch, CURLOPT_RETURNTRANSFER,1); curl_setopt($ch, CURLOPT_HEADER,0); curl_setopt($ch, CURLOPT_FAILONERROR, 1); curl_setopt($ch, CURLOPT_FOLLOWLOCATION, 1); curl_setopt($ch, CURLOPT_TIMEOUT, 120); //times out after 120s curl_setopt($ch, CURLOPT_RETURNTRANSFER,1); //curl_setopt($ch, CURLOPT_POST, 1); //curl_setopt($ch, CURLOPT_POSTFIELDS, "HaendlerID=$HaendlerID&Len=$Len&Data=$Data"); $result=curl_exec($ch); curl_close ($ch); return $result ; } $result=post_data($URL) ; /* Redirect zur naechten Page um Status u ändern */ header ("Location: http://paygate.mydomain.de/change_stat.php?HaendlerID=$HaendlerID&$result"); exit ; -- -------------------------------* I-NetPartner GmbH Hans-Peter Straub Seewiesenstrasse 12 D-73054 Eislingen -- Phone: +49 7161 9849955 Fax: +49 7161 9849956 -- eMail: [EMAIL PROTECTED] Web: http://www.I-NetPartner.de -------------------------------* ******************************** ** Informieren Sie Sich über ** -->> GigaLan <<-- ** das Funknetz im Filstal ** http://www.GigaLan.de ******************************** -------------------------------* -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]