Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- $ch = curl_init();
- curl_setopt($ch, CURLOPT_HEADER, 1);
- curl_setopt($ch, CURLOPT_RETURNTRANSFER,1);
- //$url = 'http://localhost:10088/travelport_dev/smsxml.php';
- $url = "http://lambda.smsmedia.ug/travelport/index.php";
- curl_setopt($ch, CURLOPT_URL, $url);
- curl_setopt($ch, CURLOPT_POST, 1);
- curl_setopt($ch, CURLOPT_POSTFIELDS, $xml);
- curl_setopt($ch, CURLOPT_HTTPHEADER, array('Content-Type: text/xml'));
- $content=curl_exec($ch);
- $info = curl_getinfo($ch);
- $htt_code = $info['http_code'];
- curl_close($ch);
- $content var_dump
- (string:1661) HTTP/1.0 417 Expectation failed
- Server: squid/2.7.STABLE6
- Date: Fri, 22 Jul 2011 08:19:59 GMT
- Content-Type: text/html
- Content-Length: 1318
- X-Squid-Error: ERR_INVALID_REQ 0
- X-Cache: MISS from mail.smsmedia.info
- X-Cache-Lookup: NONE from mail.smsmedia.info:3128
- Via: 1.0 mail.smsmedia.info:3128 (squid/2.7.STABLE6)
- Connection: close
- <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
- <HTML><HEAD><META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=iso-8859-1">
- <TITLE>ERROR: The requested URL could not be retrieved</TITLE>
- <STYLE type="text/css"><!--BODY{background-color:#ffffff;font-family:verdana,sans-serif}PRE{font-family:sans-serif}--></STYLE>
- </HEAD><BODY>
- <H1>ERROR</H1>
- <H2>The requested URL could not be retrieved</H2>
- <HR noshade size="1px">
- <P>
- While trying to process the request:
- <PRE>
- POST /travelport/index.php HTTP/1.1
- Host: lambda.smsmedia.ug
- Accept: */*
- Content-Type: text/xml
- Content-Length: 1281
- Expect: 100-continue
- </PRE>
- <P>
- The following error was encountered:
- <UL>
- <LI>
- <STRONG>
- Invalid Request
- </STRONG>
- </UL>
- <P>
- Some aspect of the HTTP Request is invalid. Possible problems:
- <UL>
- <LI>Missing or unknown request method
- <LI>Missing URL
- <LI>Missing HTTP Identifier (HTTP/1.0)
- <LI>Request is too large
- <LI>Content-Length missing for POST or PUT requests
- <LI>Illegal character in hostname; underscores are not allowed
- </UL>
- <P>Your cache administrator is <A HREF="mailto:webmaster">webmaster</A>.
- <BR clear="all">
- <HR noshade size="1px">
- <ADDRESS>
- Generated Fri, 22 Jul 2011 08:19:59 GMT by mail.smsmedia.info (squid/2.7.STABLE6)
- </ADDRESS>
- </BODY></HTML>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement