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><ns4517:doGoogleSearch xmlns:ns4517="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></ns4517: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, 09 May 2021 17:54:53 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-05-09 21:54:53.013172 nusoap_client: ctor wsdl= timeout=0 response_timeout=30
endpoint=string(34) "http://api.google.com/search/beta2"
2021-05-09 21:54:53.013231 nusoap_client: instantiate SOAP with endpoint at http://api.google.com/search/beta2
2021-05-09 21:54:53.013251 nusoap_client: setUseCURL(0)
2021-05-09 21:54:53.013280 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-05-09 21:54:53.013322 nusoap_client: serializing param array for operation doGoogleSearch
2021-05-09 21:54:53.013344 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-05-09 21:54:53.013380 nusoap_client: serialize_val: serialize string
2021-05-09 21:54:53.013409 nusoap_client: serialize_val returning <Googlekey xsi:type="xsd:string">Your Google key</Googlekey>
2021-05-09 21:54:53.013427 nusoap_client: in serialize_val: name=queryStr, type=, name_ns=, type_ns=, use=encoded, soapval=
value=string(8) "robotics"
attributes=bool(false)
2021-05-09 21:54:53.013452 nusoap_client: serialize_val: serialize string
2021-05-09 21:54:53.013470 nusoap_client: serialize_val returning <queryStr xsi:type="xsd:string">robotics</queryStr>
2021-05-09 21:54:53.013485 nusoap_client: in serialize_val: name=startFrom, type=, name_ns=, type_ns=, use=encoded, soapval=
value=int(0)
attributes=bool(false)
2021-05-09 21:54:53.013507 nusoap_client: serialize_val: serialize int
2021-05-09 21:54:53.013521 nusoap_client: serialize_val returning <startFrom xsi:type="xsd:int">0</startFrom>
2021-05-09 21:54:53.013537 nusoap_client: in serialize_val: name=maxResults, type=, name_ns=, type_ns=, use=encoded, soapval=
value=int(10)
attributes=bool(false)
2021-05-09 21:54:53.013558 nusoap_client: serialize_val: serialize int
2021-05-09 21:54:53.013571 nusoap_client: serialize_val returning <maxResults xsi:type="xsd:int">10</maxResults>
2021-05-09 21:54:53.013586 nusoap_client: in serialize_val: name=filter, type=, name_ns=, type_ns=, use=encoded, soapval=
value=bool(true)
attributes=bool(false)
2021-05-09 21:54:53.013606 nusoap_client: serialize_val: serialize boolean
2021-05-09 21:54:53.013620 nusoap_client: serialize_val returning <filter xsi:type="xsd:boolean">1</filter>
2021-05-09 21:54:53.013633 nusoap_client: in serialize_val: name=restrict, type=, name_ns=, type_ns=, use=encoded, soapval=
value=string(0) ""
attributes=bool(false)
2021-05-09 21:54:53.013656 nusoap_client: serialize_val: serialize string
2021-05-09 21:54:53.013673 nusoap_client: serialize_val returning <restrict xsi:type="xsd:string"></restrict>
2021-05-09 21:54:53.013687 nusoap_client: in serialize_val: name=adultContent, type=, name_ns=, type_ns=, use=encoded, soapval=
value=bool(true)
attributes=bool(false)
2021-05-09 21:54:53.013707 nusoap_client: serialize_val: serialize boolean
2021-05-09 21:54:53.013720 nusoap_client: serialize_val returning <adultContent xsi:type="xsd:boolean">1</adultContent>
2021-05-09 21:54:53.013734 nusoap_client: in serialize_val: name=language, type=, name_ns=, type_ns=, use=encoded, soapval=
value=string(0) ""
attributes=bool(false)
2021-05-09 21:54:53.013758 nusoap_client: serialize_val: serialize string
2021-05-09 21:54:53.013775 nusoap_client: serialize_val returning <language xsi:type="xsd:string"></language>
2021-05-09 21:54:53.013789 nusoap_client: in serialize_val: name=iencoding, type=, name_ns=, type_ns=, use=encoded, soapval=
value=string(0) ""
attributes=bool(false)
2021-05-09 21:54:53.013811 nusoap_client: serialize_val: serialize string
2021-05-09 21:54:53.013828 nusoap_client: serialize_val returning <iencoding xsi:type="xsd:string"></iencoding>
2021-05-09 21:54:53.013842 nusoap_client: in serialize_val: name=oendcoding, type=, name_ns=, type_ns=, use=encoded, soapval=
value=string(0) ""
attributes=bool(false)
2021-05-09 21:54:53.013863 nusoap_client: serialize_val: serialize string
2021-05-09 21:54:53.013880 nusoap_client: serialize_val returning <oendcoding xsi:type="xsd:string"></oendcoding>
2021-05-09 21:54:53.013893 nusoap_client: wrapping RPC request with encoded method element
2021-05-09 21:54:53.013915 nusoap_client: In serializeEnvelope length=551 body (max 1000 characters)=<ns4517:doGoogleSearch xmlns:ns4517="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></ns4517:doGoogleSearch> style=rpc use=encoded encodingStyle=http://schemas.xmlsoap.org/soap/encoding/
2021-05-09 21:54:53.013929 nusoap_client: headers:
bool(false)
2021-05-09 21:54:53.013945 nusoap_client: namespaces:
array(0) {
}
2021-05-09 21:54:53.013990 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-05-09 21:54:53.014008 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><ns4517:doGoogleSearch xmlns:ns4517="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></ns4517:doGoogleSearch></SOAP-ENV:Body></SOAP-ENV:Envelope>
2021-05-09 21:54:53.014051 nusoap_client: transporting via HTTP
2021-05-09 21:54:53.014276 nusoap_client: sending message, length=943
2021-05-09 21:54:53.014094 soap_transport_http: ctor url=http://api.google.com/search/beta2 use_curl=0 curl_options:
array(0) {
}
2021-05-09 21:54:53.014136 soap_transport_http: parsed URL scheme = http
2021-05-09 21:54:53.014152 soap_transport_http: parsed URL host = api.google.com
2021-05-09 21:54:53.014163 soap_transport_http: parsed URL path = /search/beta2
2021-05-09 21:54:53.014183 soap_transport_http: set header Host: api.google.com
2021-05-09 21:54:53.014213 soap_transport_http: set header User-Agent: NuSOAP/0.9.5 (1.123)
2021-05-09 21:54:53.014243 soap_transport_http: set header Content-Type: text/xml; charset=UTF-8
2021-05-09 21:54:53.014260 soap_transport_http: set header SOAPAction: "urn:GoogleSearch"
2021-05-09 21:54:53.014301 soap_transport_http: entered send() with data of length: 943
2021-05-09 21:54:53.014321 soap_transport_http: connect connection_timeout 0, response_timeout 30, scheme http, host api.google.com, port 80
2021-05-09 21:54:53.014342 soap_transport_http: calling fsockopen with host api.google.com connection_timeout 0
2021-05-09 21:54:53.026152 soap_transport_http: set response timeout to 30
2021-05-09 21:54:53.026177 soap_transport_http: socket connected
2021-05-09 21:54:53.026205 soap_transport_http: set header Content-Length: 943
2021-05-09 21:54:53.026222 soap_transport_http: HTTP request: POST /search/beta2 HTTP/1.0
2021-05-09 21:54:53.026236 soap_transport_http: HTTP header: Host: api.google.com
2021-05-09 21:54:53.026249 soap_transport_http: HTTP header: User-Agent: NuSOAP/0.9.5 (1.123)
2021-05-09 21:54:53.026260 soap_transport_http: HTTP header: Content-Type: text/xml; charset=UTF-8
2021-05-09 21:54:53.026272 soap_transport_http: HTTP header: SOAPAction: "urn:GoogleSearch"
2021-05-09 21:54:53.026285 soap_transport_http: HTTP header: Content-Length: 943
2021-05-09 21:54:53.026337 soap_transport_http: wrote data to socket, length = 1122
2021-05-09 21:54:53.029707 soap_transport_http: read line of 24 bytes: HTTP/1.0 404 Not Found
2021-05-09 21:54:53.029736 soap_transport_http: read line of 40 bytes: Content-Type: text/html; charset=UTF-8
2021-05-09 21:54:53.029753 soap_transport_http: read line of 30 bytes: Referrer-Policy: no-referrer
2021-05-09 21:54:53.029770 soap_transport_http: read line of 22 bytes: Content-Length: 1573
2021-05-09 21:54:53.029787 soap_transport_http: read line of 37 bytes: Date: Sun, 09 May 2021 17:54:53 GMT
2021-05-09 21:54:53.029803 soap_transport_http: read line of 2 bytes: 
2021-05-09 21:54:53.029824 soap_transport_http: found end of headers after length 155
2021-05-09 21:54:53.029870 soap_transport_http: want to read content of length 1573
2021-05-09 21:54:53.029892 soap_transport_http: read buffer of 1573 bytes
2021-05-09 21:54:53.029915 soap_transport_http: read to EOF
2021-05-09 21:54:53.029927 soap_transport_http: read body of length 1573
2021-05-09 21:54:53.029941 soap_transport_http: received a total of 1728 bytes of data from server
2021-05-09 21:54:53.029986 soap_transport_http: closed socket
2021-05-09 21:54:53.030018 soap_transport_http: end of send()
2021-05-09 21:54:53.030051 nusoap_client: Error: HTTP Error: Unsupported HTTP response status 404 Not Found (soapclient->response has contents of the response)