I'm testing the CURL function and I'm actually doing quite well.

I've got this:

PHP Code:
      $curl curl_init();
       
// The above line initializes the CURL session.

       
curl_setopt($curlCURLOPT_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. 
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.

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?