Different Variables with POST, not changing

aorokkoy

New Member
I have got a PHP script with cURL that does a POST request to a ASP file (not mine, so I can't change it), it works great! I have set a Cookie (ASPSESSIONID) that I have received from Echo (a HTTP POST app for Mac) and used it in my code, but when I change my POST variables it still returns the same data as before, but when I let Echo make the POST (with the same Cookie) it works, it receives new data. When I now make the same request with my script it works also! How can I do this without Echo?I'm dutch so maybe is my Engels not 100% right. My code:\[code\]$ch = curl_init();curl_setopt($ch, CURLOPT_URL, $url);curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);curl_setopt($ch, CURLOPT_POST, true);curl_setopt($ch, CURLOPT_POSTFIELDS, "Bgnm=3Ve&rst=$rst"); curl_setopt($ch, CURLOPT_HTTPHEADER,array('Cookie: ASPSESSIONIDAACQRCDD=LAODBMKAPLDAJNILIKFGFPFP'));$output = curl_exec($ch);$info = curl_getinfo($ch);curl_close($ch);\[/code\]
 
Back
Top