Possible Duplicate:
cURL: Just trying to download a page
I’m trying to submit this form without filling any field using cURL.
I’ve tried this:
<?php
//set POST variables
$url = 'http://www.tourism.verona.it/_vti_g1_srSf.aspx?rpstry=3_';
//open connection
$ch = curl_init();
//set the url, number of POST vars, POST data
curl_setopt($ch,CURLOPT_URL,$url);
curl_setopt($ch,CURLOPT_POST,0);
//execute post
$result = curl_exec($ch);
//echo $result;
//close connection
curl_close($ch);
but the output is just the same page (I expected the page that is showed after submit the form and that contains a list of hotels).
I suggest the following options:
the other 3 are useful with most of the websites and you better use cookies then trying to figure out why it doesn’t work.