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.9.5 (1.123)
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><ns9594:doGoogleSearch xmlns:ns9594="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></ns9594: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: Sat, 23 Oct 2021 15:42:37 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

2021-10-23 19:42:37.330060 nusoap_client: ctor wsdl= timeout=0 response_timeout=30
endpoint=string(34) "http://api.google.com/search/beta2"
2021-10-23 19:42:37.330130 nusoap_client: instantiate SOAP with endpoint at http://api.google.com/search/beta2
2021-10-23 19:42:37.330158 nusoap_client: setUseCURL(0)
2021-10-23 19:42:37.330194 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)
2021-10-23 19:42:37.330234 nusoap_client: serializing param array for operation doGoogleSearch
2021-10-23 19:42:37.330256 nusoap_client: in serialize_val: name=Googlekey, type=, name_ns=, type_ns=, use=encoded, soapval=
value=string(15) "Your Google key"
attributes=bool(false)
2021-10-23 19:42:37.330292 nusoap_client: serialize_val: serialize string
2021-10-23 19:42:37.330318 nusoap_client: serialize_val returning <Googlekey xsi:type="xsd:string">Your Google key</Googlekey>
2021-10-23 19:42:37.330335 nusoap_client: in serialize_val: name=queryStr, type=, name_ns=, type_ns=, use=encoded, soapval=
value=string(8) "robotics"
attributes=bool(false)
2021-10-23 19:42:37.330360 nusoap_client: serialize_val: serialize string
2021-10-23 19:42:37.330379 nusoap_client: serialize_val returning <queryStr xsi:type="xsd:string">robotics</queryStr>
2021-10-23 19:42:37.330395 nusoap_client: in serialize_val: name=startFrom, type=, name_ns=, type_ns=, use=encoded, soapval=
value=int(0)
attributes=bool(false)
2021-10-23 19:42:37.330424 nusoap_client: serialize_val: serialize int
2021-10-23 19:42:37.330440 nusoap_client: serialize_val returning <startFrom xsi:type="xsd:int">0</startFrom>
2021-10-23 19:42:37.330456 nusoap_client: in serialize_val: name=maxResults, type=, name_ns=, type_ns=, use=encoded, soapval=
value=int(10)
attributes=bool(false)
2021-10-23 19:42:37.330478 nusoap_client: serialize_val: serialize int
2021-10-23 19:42:37.330492 nusoap_client: serialize_val returning <maxResults xsi:type="xsd:int">10</maxResults>
2021-10-23 19:42:37.330507 nusoap_client: in serialize_val: name=filter, type=, name_ns=, type_ns=, use=encoded, soapval=
value=bool(true)
attributes=bool(false)
2021-10-23 19:42:37.330527 nusoap_client: serialize_val: serialize boolean
2021-10-23 19:42:37.330541 nusoap_client: serialize_val returning <filter xsi:type="xsd:boolean">1</filter>
2021-10-23 19:42:37.330555 nusoap_client: in serialize_val: name=restrict, type=, name_ns=, type_ns=, use=encoded, soapval=
value=string(0) ""
attributes=bool(false)
2021-10-23 19:42:37.330577 nusoap_client: serialize_val: serialize string
2021-10-23 19:42:37.330596 nusoap_client: serialize_val returning <restrict xsi:type="xsd:string"></restrict>
2021-10-23 19:42:37.330610 nusoap_client: in serialize_val: name=adultContent, type=, name_ns=, type_ns=, use=encoded, soapval=
value=bool(true)
attributes=bool(false)
2021-10-23 19:42:37.330631 nusoap_client: serialize_val: serialize boolean
2021-10-23 19:42:37.330644 nusoap_client: serialize_val returning <adultContent xsi:type="xsd:boolean">1</adultContent>
2021-10-23 19:42:37.330658 nusoap_client: in serialize_val: name=language, type=, name_ns=, type_ns=, use=encoded, soapval=
value=string(0) ""
attributes=bool(false)
2021-10-23 19:42:37.330681 nusoap_client: serialize_val: serialize string
2021-10-23 19:42:37.330699 nusoap_client: serialize_val returning <language xsi:type="xsd:string"></language>
2021-10-23 19:42:37.330713 nusoap_client: in serialize_val: name=iencoding, type=, name_ns=, type_ns=, use=encoded, soapval=
value=string(0) ""
attributes=bool(false)
2021-10-23 19:42:37.330736 nusoap_client: serialize_val: serialize string
2021-10-23 19:42:37.330753 nusoap_client: serialize_val returning <iencoding xsi:type="xsd:string"></iencoding>
2021-10-23 19:42:37.330767 nusoap_client: in serialize_val: name=oendcoding, type=, name_ns=, type_ns=, use=encoded, soapval=
value=string(0) ""
attributes=bool(false)
2021-10-23 19:42:37.330789 nusoap_client: serialize_val: serialize string
2021-10-23 19:42:37.330807 nusoap_client: serialize_val returning <oendcoding xsi:type="xsd:string"></oendcoding>
2021-10-23 19:42:37.330820 nusoap_client: wrapping RPC request with encoded method element
2021-10-23 19:42:37.330842 nusoap_client: In serializeEnvelope length=551 body (max 1000 characters)=<ns9594:doGoogleSearch xmlns:ns9594="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></ns9594:doGoogleSearch> style=rpc use=encoded encodingStyle=http://schemas.xmlsoap.org/soap/encoding/
2021-10-23 19:42:37.330855 nusoap_client: headers:
bool(false)
2021-10-23 19:42:37.330870 nusoap_client: namespaces:
array(0) {
}
2021-10-23 19:42:37.330903 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/
2021-10-23 19:42:37.330917 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><ns9594:doGoogleSearch xmlns:ns9594="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></ns9594:doGoogleSearch></SOAP-ENV:Body></SOAP-ENV:Envelope>
2021-10-23 19:42:37.330954 nusoap_client: transporting via HTTP
2021-10-23 19:42:37.331161 nusoap_client: sending message, length=943
2021-10-23 19:42:37.331000 soap_transport_http: ctor url=http://api.google.com/search/beta2 use_curl=0 curl_options:
array(0) {
}
2021-10-23 19:42:37.331030 soap_transport_http: parsed URL scheme = http
2021-10-23 19:42:37.331044 soap_transport_http: parsed URL host = api.google.com
2021-10-23 19:42:37.331056 soap_transport_http: parsed URL path = /search/beta2
2021-10-23 19:42:37.331076 soap_transport_http: set header Host: api.google.com
2021-10-23 19:42:37.331104 soap_transport_http: set header User-Agent: NuSOAP/0.9.5 (1.123)
2021-10-23 19:42:37.331123 soap_transport_http: set header Content-Type: text/xml; charset=UTF-8
2021-10-23 19:42:37.331138 soap_transport_http: set header SOAPAction: "urn:GoogleSearch"
2021-10-23 19:42:37.331213 soap_transport_http: entered send() with data of length: 943
2021-10-23 19:42:37.331235 soap_transport_http: connect connection_timeout 0, response_timeout 30, scheme http, host api.google.com, port 80
2021-10-23 19:42:37.331257 soap_transport_http: calling fsockopen with host api.google.com connection_timeout 0
2021-10-23 19:42:37.348063 soap_transport_http: set response timeout to 30
2021-10-23 19:42:37.348122 soap_transport_http: socket connected
2021-10-23 19:42:37.348175 soap_transport_http: set header Content-Length: 943
2021-10-23 19:42:37.348194 soap_transport_http: HTTP request: POST /search/beta2 HTTP/1.0
2021-10-23 19:42:37.348212 soap_transport_http: HTTP header: Host: api.google.com
2021-10-23 19:42:37.348225 soap_transport_http: HTTP header: User-Agent: NuSOAP/0.9.5 (1.123)
2021-10-23 19:42:37.348238 soap_transport_http: HTTP header: Content-Type: text/xml; charset=UTF-8
2021-10-23 19:42:37.348251 soap_transport_http: HTTP header: SOAPAction: "urn:GoogleSearch"
2021-10-23 19:42:37.348264 soap_transport_http: HTTP header: Content-Length: 943
2021-10-23 19:42:37.348318 soap_transport_http: wrote data to socket, length = 1122
2021-10-23 19:42:37.351780 soap_transport_http: read line of 24 bytes: HTTP/1.0 404 Not Found
2021-10-23 19:42:37.351810 soap_transport_http: read line of 40 bytes: Content-Type: text/html; charset=UTF-8
2021-10-23 19:42:37.351828 soap_transport_http: read line of 30 bytes: Referrer-Policy: no-referrer
2021-10-23 19:42:37.351845 soap_transport_http: read line of 22 bytes: Content-Length: 1573
2021-10-23 19:42:37.351861 soap_transport_http: read line of 37 bytes: Date: Sat, 23 Oct 2021 15:42:37 GMT
2021-10-23 19:42:37.351878 soap_transport_http: read line of 2 bytes: 
2021-10-23 19:42:37.351901 soap_transport_http: found end of headers after length 155
2021-10-23 19:42:37.351953 soap_transport_http: want to read content of length 1573
2021-10-23 19:42:37.351977 soap_transport_http: read buffer of 1573 bytes
2021-10-23 19:42:37.351999 soap_transport_http: read to EOF
2021-10-23 19:42:37.352019 soap_transport_http: read body of length 1573
2021-10-23 19:42:37.352033 soap_transport_http: received a total of 1728 bytes of data from server
2021-10-23 19:42:37.352079 soap_transport_http: closed socket
2021-10-23 19:42:37.352113 soap_transport_http: end of send()
2021-10-23 19:42:37.352164 nusoap_client: Error: HTTP Error: Unsupported HTTP response status 404 Not Found (soapclient->response has contents of the response)