I'm testing the CURL function and I'm actually doing quite well.
I've got this:
And I have saved the php file to my website and when I run it the correct page (as in curl_setopt) opens with the form filled in as I want it.PHP Code:$curl = curl_init();
// The above line initializes the CURL session.
curl_setopt($curl, CURLOPT_URL, "http://correctsite.com/cgi-bin/add_posting.pl?posting=001");
// The above line tells CURL what URL we’re going to be working with.
However - when I click 'submit' I get mysite.com/cgi-bin/add_posting.pl?posting=001 RATHER THAN correctsite.com/cgi-bin/add_posting.pl?posting=001
So in other words, for some reason my own domain is being appended onto the url rather than exactly as specified. Can anyone advise how to actually correct this?




Reply With Quote