Error

HTTP Error: Unsupported HTTP response status 404 Not Found (soapclient->response has contents of the response)

Request

POST /search/beta2 HTTP/1.0
Host: api.google.com
User-Agent: NuSOAP/0.7.3 (1.114)
Content-Type: text/xml; charset=UTF-8
SOAPAction: "urn:GoogleSearch"
Content-Length: 943

<?xml version="1.0" encoding="UTF-8"?><SOAP-ENV:Envelope SOAP-ENV:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:SOAP-ENC="http://schemas.xmlsoap.org/soap/encoding/"><SOAP-ENV:Body><ns6976:doGoogleSearch xmlns:ns6976="urn:GoogleSearch"><Googlekey xsi:type="xsd:string">Your Google key</Googlekey><queryStr xsi:type="xsd:string">robotics</queryStr><startFrom xsi:type="xsd:int">0</startFrom><maxResults xsi:type="xsd:int">10</maxResults><filter xsi:type="xsd:boolean">1</filter><restrict xsi:type="xsd:string"></restrict><adultContent xsi:type="xsd:boolean">1</adultContent><language xsi:type="xsd:string"></language><iencoding xsi:type="xsd:string"></iencoding><oendcoding xsi:type="xsd:string"></oendcoding></ns6976:doGoogleSearch></SOAP-ENV:Body></SOAP-ENV:Envelope>

Response

HTTP/1.0 404 Not Found
Content-Type: text/html; charset=UTF-8
Referrer-Policy: no-referrer
Content-Length: 1573
Date: Sun, 21 Jul 2019 05:23:10 GMT

<!DOCTYPE html>
<html lang=en>
  <meta charset=utf-8>
  <meta name=viewport content="initial-scale=1, minimum-scale=1, width=device-width">
  <title>Error 404 (Not Found)!!1</title>
  <style>
    *{margin:0;padding:0}html,code{font:15px/22px arial,sans-serif}html{background:#fff;color:#222;padding:15px}body{margin:7% auto 0;max-width:390px;min-height:180px;padding:30px 0 15px}* > body{background:url(//www.google.com/images/errors/robot.png) 100% 5px no-repeat;padding-right:205px}p{margin:11px 0 22px;overflow:hidden}ins{color:#777;text-decoration:none}a img{border:0}@media screen and (max-width:772px){body{background:none;margin-top:0;max-width:none;padding-right:0}}#logo{background:url(//www.google.com/images/branding/googlelogo/1x/googlelogo_color_150x54dp.png) no-repeat;margin-left:-5px}@media only screen and (min-resolution:192dpi){#logo{background:url(//www.google.com/images/branding/googlelogo/2x/googlelogo_color_150x54dp.png) no-repeat 0% 0%/100% 100%;-moz-border-image:url(//www.google.com/images/branding/googlelogo/2x/googlelogo_color_150x54dp.png) 0}}@media only screen and (-webkit-min-device-pixel-ratio:2){#logo{background:url(//www.google.com/images/branding/googlelogo/2x/googlelogo_color_150x54dp.png) no-repeat;-webkit-background-size:100% 100%}}#logo{display:inline-block;height:54px;width:150px}
  </style>
  <a href=//www.google.com/><span id=logo aria-label=Google></span></a>
  <p><b>404.</b> <ins>That’s an error.</ins>
  <p>The requested URL <code>/search/beta2</code> was not found on this server.  <ins>That’s all we know.</ins>

Debug

2019-07-20 22:23:10.593246 nusoap_client: ctor wsdl= timeout=0 response_timeout=30
endpoint=string(34) "http://api.google.com/search/beta2"
2019-07-20 22:23:10.593386 nusoap_client: instantiate SOAP with endpoint at http://api.google.com/search/beta2
2019-07-20 22:23:10.593417 nusoap_client: setUseCURL(0)
2019-07-20 22:23:10.593478 nusoap_client: call: operation=doGoogleSearch, namespace=urn:GoogleSearch, soapAction=urn:GoogleSearch, rpcParams=, style=rpc, use=encoded, endpointType=soap
params=array(10) {
  ["Googlekey"]=>
  string(15) "Your Google key"
  ["queryStr"]=>
  string(8) "robotics"
  ["startFrom"]=>
  int(0)
  ["maxResults"]=>
  int(10)
  ["filter"]=>
  bool(true)
  ["restrict"]=>
  string(0) ""
  ["adultContent"]=>
  bool(true)
  ["language"]=>
  string(0) ""
  ["iencoding"]=>
  string(0) ""
  ["oendcoding"]=>
  string(0) ""
}
headers=bool(false)
2019-07-20 22:23:10.593567 nusoap_client: serializing param array for operation doGoogleSearch
2019-07-20 22:23:10.593603 nusoap_client: in serialize_val: name=Googlekey, type=, name_ns=, type_ns=, use=encoded, soapval=
value=string(15) "Your Google key"
attributes=bool(false)
2019-07-20 22:23:10.593656 nusoap_client: serialize_val: serialize string
2019-07-20 22:23:10.593700 nusoap_client: serialize_val returning <Googlekey xsi:type="xsd:string">Your Google key</Googlekey>
2019-07-20 22:23:10.593723 nusoap_client: in serialize_val: name=queryStr, type=, name_ns=, type_ns=, use=encoded, soapval=
value=string(8) "robotics"
attributes=bool(false)
2019-07-20 22:23:10.593758 nusoap_client: serialize_val: serialize string
2019-07-20 22:23:10.593782 nusoap_client: serialize_val returning <queryStr xsi:type="xsd:string">robotics</queryStr>
2019-07-20 22:23:10.593803 nusoap_client: in serialize_val: name=startFrom, type=, name_ns=, type_ns=, use=encoded, soapval=
value=int(0)
attributes=bool(false)
2019-07-20 22:23:10.593831 nusoap_client: serialize_val: serialize int
2019-07-20 22:23:10.593849 nusoap_client: serialize_val returning <startFrom xsi:type="xsd:int">0</startFrom>
2019-07-20 22:23:10.593869 nusoap_client: in serialize_val: name=maxResults, type=, name_ns=, type_ns=, use=encoded, soapval=
value=int(10)
attributes=bool(false)
2019-07-20 22:23:10.593896 nusoap_client: serialize_val: serialize int
2019-07-20 22:23:10.593914 nusoap_client: serialize_val returning <maxResults xsi:type="xsd:int">10</maxResults>
2019-07-20 22:23:10.593933 nusoap_client: in serialize_val: name=filter, type=, name_ns=, type_ns=, use=encoded, soapval=
value=bool(true)
attributes=bool(false)
2019-07-20 22:23:10.593959 nusoap_client: serialize_val: serialize boolean
2019-07-20 22:23:10.593976 nusoap_client: serialize_val returning <filter xsi:type="xsd:boolean">1</filter>
2019-07-20 22:23:10.593995 nusoap_client: in serialize_val: name=restrict, type=, name_ns=, type_ns=, use=encoded, soapval=
value=string(0) ""
attributes=bool(false)
2019-07-20 22:23:10.594023 nusoap_client: serialize_val: serialize string
2019-07-20 22:23:10.594047 nusoap_client: serialize_val returning <restrict xsi:type="xsd:string"></restrict>
2019-07-20 22:23:10.594066 nusoap_client: in serialize_val: name=adultContent, type=, name_ns=, type_ns=, use=encoded, soapval=
value=bool(true)
attributes=bool(false)
2019-07-20 22:23:10.594093 nusoap_client: serialize_val: serialize boolean
2019-07-20 22:23:10.594116 nusoap_client: serialize_val returning <adultContent xsi:type="xsd:boolean">1</adultContent>
2019-07-20 22:23:10.594136 nusoap_client: in serialize_val: name=language, type=, name_ns=, type_ns=, use=encoded, soapval=
value=string(0) ""
attributes=bool(false)
2019-07-20 22:23:10.594170 nusoap_client: serialize_val: serialize string
2019-07-20 22:23:10.594194 nusoap_client: serialize_val returning <language xsi:type="xsd:string"></language>
2019-07-20 22:23:10.594213 nusoap_client: in serialize_val: name=iencoding, type=, name_ns=, type_ns=, use=encoded, soapval=
value=string(0) ""
attributes=bool(false)
2019-07-20 22:23:10.594242 nusoap_client: serialize_val: serialize string
2019-07-20 22:23:10.594265 nusoap_client: serialize_val returning <iencoding xsi:type="xsd:string"></iencoding>
2019-07-20 22:23:10.594284 nusoap_client: in serialize_val: name=oendcoding, type=, name_ns=, type_ns=, use=encoded, soapval=
value=string(0) ""
attributes=bool(false)
2019-07-20 22:23:10.594312 nusoap_client: serialize_val: serialize string
2019-07-20 22:23:10.594335 nusoap_client: serialize_val returning <oendcoding xsi:type="xsd:string"></oendcoding>
2019-07-20 22:23:10.594353 nusoap_client: wrapping RPC request with encoded method element
2019-07-20 22:23:10.594382 nusoap_client: In serializeEnvelope length=551 body (max 1000 characters)=<ns6976:doGoogleSearch xmlns:ns6976="urn:GoogleSearch"><Googlekey xsi:type="xsd:string">Your Google key</Googlekey><queryStr xsi:type="xsd:string">robotics</queryStr><startFrom xsi:type="xsd:int">0</startFrom><maxResults xsi:type="xsd:int">10</maxResults><filter xsi:type="xsd:boolean">1</filter><restrict xsi:type="xsd:string"></restrict><adultContent xsi:type="xsd:boolean">1</adultContent><language xsi:type="xsd:string"></language><iencoding xsi:type="xsd:string"></iencoding><oendcoding xsi:type="xsd:string"></oendcoding></ns6976:doGoogleSearch> style=rpc use=encoded encodingStyle=http://schemas.xmlsoap.org/soap/encoding/
2019-07-20 22:23:10.594405 nusoap_client: headers:
bool(false)
2019-07-20 22:23:10.594429 nusoap_client: namespaces:
array(0) {
}
2019-07-20 22:23:10.594488 nusoap_client: endpoint=http://api.google.com/search/beta2, soapAction=urn:GoogleSearch, namespace=urn:GoogleSearch, style=rpc, use=encoded, encodingStyle=http://schemas.xmlsoap.org/soap/encoding/
2019-07-20 22:23:10.594515 nusoap_client: SOAP message length=943 contents (max 1000 bytes)=<?xml version="1.0" encoding="UTF-8"?><SOAP-ENV:Envelope SOAP-ENV:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:SOAP-ENC="http://schemas.xmlsoap.org/soap/encoding/"><SOAP-ENV:Body><ns6976:doGoogleSearch xmlns:ns6976="urn:GoogleSearch"><Googlekey xsi:type="xsd:string">Your Google key</Googlekey><queryStr xsi:type="xsd:string">robotics</queryStr><startFrom xsi:type="xsd:int">0</startFrom><maxResults xsi:type="xsd:int">10</maxResults><filter xsi:type="xsd:boolean">1</filter><restrict xsi:type="xsd:string"></restrict><adultContent xsi:type="xsd:boolean">1</adultContent><language xsi:type="xsd:string"></language><iencoding xsi:type="xsd:string"></iencoding><oendcoding xsi:type="xsd:string"></oendcoding></ns6976:doGoogleSearch></SOAP-ENV:Body></SOAP-ENV:Envelope>
2019-07-20 22:23:10.594569 nusoap_client: transporting via HTTP
2019-07-20 22:23:10.594871 nusoap_client: sending message, length=943
2019-07-20 22:23:10.594626 soap_transport_http: ctor url=http://api.google.com/search/beta2 use_curl=0 curl_options:
array(0) {
}
2019-07-20 22:23:10.594664 soap_transport_http: parsed URL scheme = http
2019-07-20 22:23:10.594683 soap_transport_http: parsed URL host = api.google.com
2019-07-20 22:23:10.594699 soap_transport_http: parsed URL path = /search/beta2
2019-07-20 22:23:10.594738 soap_transport_http: set header Host: api.google.com
2019-07-20 22:23:10.594806 soap_transport_http: set header User-Agent: NuSOAP/0.7.3 (1.114)
2019-07-20 22:23:10.594833 soap_transport_http: set header Content-Type: text/xml; charset=UTF-8
2019-07-20 22:23:10.594852 soap_transport_http: set header SOAPAction: "urn:GoogleSearch"
2019-07-20 22:23:10.594911 soap_transport_http: entered send() with data of length: 943
2019-07-20 22:23:10.594945 soap_transport_http: connect connection_timeout 0, response_timeout 30, scheme http, host api.google.com, port 80
2019-07-20 22:23:10.594972 soap_transport_http: calling fsockopen with host api.google.com connection_timeout 0
2019-07-20 22:23:10.744384 soap_transport_http: set response timeout to 30
2019-07-20 22:23:10.744474 soap_transport_http: socket connected
2019-07-20 22:23:10.744521 soap_transport_http: set header Content-Length: 943
2019-07-20 22:23:10.744545 soap_transport_http: HTTP request: POST /search/beta2 HTTP/1.0
2019-07-20 22:23:10.744565 soap_transport_http: HTTP header: Host: api.google.com
2019-07-20 22:23:10.744583 soap_transport_http: HTTP header: User-Agent: NuSOAP/0.7.3 (1.114)
2019-07-20 22:23:10.744599 soap_transport_http: HTTP header: Content-Type: text/xml; charset=UTF-8
2019-07-20 22:23:10.744616 soap_transport_http: HTTP header: SOAPAction: "urn:GoogleSearch"
2019-07-20 22:23:10.744633 soap_transport_http: HTTP header: Content-Length: 943
2019-07-20 22:23:10.744713 soap_transport_http: wrote data to socket, length = 1122
2019-07-20 22:23:10.775641 soap_transport_http: read line of 24 bytes: HTTP/1.0 404 Not Found
2019-07-20 22:23:10.775758 soap_transport_http: read line of 40 bytes: Content-Type: text/html; charset=UTF-8
2019-07-20 22:23:10.775802 soap_transport_http: read line of 30 bytes: Referrer-Policy: no-referrer
2019-07-20 22:23:10.775837 soap_transport_http: read line of 22 bytes: Content-Length: 1573
2019-07-20 22:23:10.775871 soap_transport_http: read line of 37 bytes: Date: Sun, 21 Jul 2019 05:23:10 GMT
2019-07-20 22:23:10.775905 soap_transport_http: read line of 2 bytes: 
2019-07-20 22:23:10.776001 soap_transport_http: found end of headers after length 155
2019-07-20 22:23:10.776103 soap_transport_http: want to read content of length 1573
2019-07-20 22:23:10.776169 soap_transport_http: read buffer of 1573 bytes
2019-07-20 22:23:10.776221 soap_transport_http: read to EOF
2019-07-20 22:23:10.776254 soap_transport_http: read body of length 1573
2019-07-20 22:23:10.776307 soap_transport_http: received a total of 1728 bytes of data from server
2019-07-20 22:23:10.776387 soap_transport_http: closed socket
2019-07-20 22:23:10.776531 soap_transport_http: end of send()
2019-07-20 22:23:10.776616 nusoap_client: Error: HTTP Error: Unsupported HTTP response status 404 Not Found (soapclient->response has contents of the response)