post the data using curl for expedia booking onsite
Summarizing from the comments I posted:
- If you're trying to send data to the curl url, you need to use
CURLOPT_POSTFIELDS
- For header
Content-length
the 0 value maybe an issue - To see if you are actually connecting to the URL (forexample do you need to pass a username, password forauthentication) you may want to echo out the returned headers with
CURLOPT_HEADER
- Your URL seems to be a GET Request with name/value pairs, but you are calling curl as a
POST
- A really good reference is at PHP.net http://php.net/manual/en/function.curl-setopt.php