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><ns7822:doGoogleSearch xmlns:ns7822="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></ns7822: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: Mon, 23 May 2022 19:05:15 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

2022-05-23 23:05:14.992979 nusoap_client: ctor wsdl= timeout=0 response_timeout=30
endpoint=string(34) "http://api.google.com/search/beta2"
2022-05-23 23:05:14.993030 nusoap_client: instantiate SOAP with endpoint at http://api.google.com/search/beta2
2022-05-23 23:05:14.993049 nusoap_client: setUseCURL(0)
2022-05-23 23:05:14.993077 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)
2022-05-23 23:05:14.993115 nusoap_client: serializing param array for operation doGoogleSearch
2022-05-23 23:05:14.993137 nusoap_client: in serialize_val: name=Googlekey, type=, name_ns=, type_ns=, use=encoded, soapval=
value=string(15) "Your Google key"
attributes=bool(false)
2022-05-23 23:05:14.993180 nusoap_client: serialize_val: serialize string
2022-05-23 23:05:14.993204 nusoap_client: serialize_val returning <Googlekey xsi:type="xsd:string">Your Google key</Googlekey>
2022-05-23 23:05:14.993221 nusoap_client: in serialize_val: name=queryStr, type=, name_ns=, type_ns=, use=encoded, soapval=
value=string(8) "robotics"
attributes=bool(false)
2022-05-23 23:05:14.993245 nusoap_client: serialize_val: serialize string
2022-05-23 23:05:14.993263 nusoap_client: serialize_val returning <queryStr xsi:type="xsd:string">robotics</queryStr>
2022-05-23 23:05:14.993278 nusoap_client: in serialize_val: name=startFrom, type=, name_ns=, type_ns=, use=encoded, soapval=
value=int(0)
attributes=bool(false)
2022-05-23 23:05:14.993300 nusoap_client: serialize_val: serialize int
2022-05-23 23:05:14.993313 nusoap_client: serialize_val returning <startFrom xsi:type="xsd:int">0</startFrom>
2022-05-23 23:05:14.993329 nusoap_client: in serialize_val: name=maxResults, type=, name_ns=, type_ns=, use=encoded, soapval=
value=int(10)
attributes=bool(false)
2022-05-23 23:05:14.993350 nusoap_client: serialize_val: serialize int
2022-05-23 23:05:14.993363 nusoap_client: serialize_val returning <maxResults xsi:type="xsd:int">10</maxResults>
2022-05-23 23:05:14.993377 nusoap_client: in serialize_val: name=filter, type=, name_ns=, type_ns=, use=encoded, soapval=
value=bool(true)
attributes=bool(false)
2022-05-23 23:05:14.993398 nusoap_client: serialize_val: serialize boolean
2022-05-23 23:05:14.993411 nusoap_client: serialize_val returning <filter xsi:type="xsd:boolean">1</filter>
2022-05-23 23:05:14.993430 nusoap_client: in serialize_val: name=restrict, type=, name_ns=, type_ns=, use=encoded, soapval=
value=string(0) ""
attributes=bool(false)
2022-05-23 23:05:14.993454 nusoap_client: serialize_val: serialize string
2022-05-23 23:05:14.993472 nusoap_client: serialize_val returning <restrict xsi:type="xsd:string"></restrict>
2022-05-23 23:05:14.993487 nusoap_client: in serialize_val: name=adultContent, type=, name_ns=, type_ns=, use=encoded, soapval=
value=bool(true)
attributes=bool(false)
2022-05-23 23:05:14.993507 nusoap_client: serialize_val: serialize boolean
2022-05-23 23:05:14.993520 nusoap_client: serialize_val returning <adultContent xsi:type="xsd:boolean">1</adultContent>
2022-05-23 23:05:14.993534 nusoap_client: in serialize_val: name=language, type=, name_ns=, type_ns=, use=encoded, soapval=
value=string(0) ""
attributes=bool(false)
2022-05-23 23:05:14.993557 nusoap_client: serialize_val: serialize string
2022-05-23 23:05:14.993575 nusoap_client: serialize_val returning <language xsi:type="xsd:string"></language>
2022-05-23 23:05:14.993589 nusoap_client: in serialize_val: name=iencoding, type=, name_ns=, type_ns=, use=encoded, soapval=
value=string(0) ""
attributes=bool(false)
2022-05-23 23:05:14.993612 nusoap_client: serialize_val: serialize string
2022-05-23 23:05:14.993629 nusoap_client: serialize_val returning <iencoding xsi:type="xsd:string"></iencoding>
2022-05-23 23:05:14.993643 nusoap_client: in serialize_val: name=oendcoding, type=, name_ns=, type_ns=, use=encoded, soapval=
value=string(0) ""
attributes=bool(false)
2022-05-23 23:05:14.993665 nusoap_client: serialize_val: serialize string
2022-05-23 23:05:14.993682 nusoap_client: serialize_val returning <oendcoding xsi:type="xsd:string"></oendcoding>
2022-05-23 23:05:14.993696 nusoap_client: wrapping RPC request with encoded method element
2022-05-23 23:05:14.993717 nusoap_client: In serializeEnvelope length=551 body (max 1000 characters)=<ns7822:doGoogleSearch xmlns:ns7822="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></ns7822:doGoogleSearch> style=rpc use=encoded encodingStyle=http://schemas.xmlsoap.org/soap/encoding/
2022-05-23 23:05:14.993731 nusoap_client: headers:
bool(false)
2022-05-23 23:05:14.993746 nusoap_client: namespaces:
array(0) {
}
2022-05-23 23:05:14.993777 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/
2022-05-23 23:05:14.993792 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><ns7822:doGoogleSearch xmlns:ns7822="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></ns7822:doGoogleSearch></SOAP-ENV:Body></SOAP-ENV:Envelope>
2022-05-23 23:05:14.993820 nusoap_client: transporting via HTTP
2022-05-23 23:05:14.994017 nusoap_client: sending message, length=943
2022-05-23 23:05:14.993864 soap_transport_http: ctor url=http://api.google.com/search/beta2 use_curl=0 curl_options:
array(0) {
}
2022-05-23 23:05:14.993894 soap_transport_http: parsed URL scheme = http
2022-05-23 23:05:14.993909 soap_transport_http: parsed URL host = api.google.com
2022-05-23 23:05:14.993921 soap_transport_http: parsed URL path = /search/beta2
2022-05-23 23:05:14.993941 soap_transport_http: set header Host: api.google.com
2022-05-23 23:05:14.993969 soap_transport_http: set header User-Agent: NuSOAP/0.9.5 (1.123)
2022-05-23 23:05:14.993988 soap_transport_http: set header Content-Type: text/xml; charset=UTF-8
2022-05-23 23:05:14.994002 soap_transport_http: set header SOAPAction: "urn:GoogleSearch"
2022-05-23 23:05:14.994036 soap_transport_http: entered send() with data of length: 943
2022-05-23 23:05:14.994055 soap_transport_http: connect connection_timeout 0, response_timeout 30, scheme http, host api.google.com, port 80
2022-05-23 23:05:14.994076 soap_transport_http: calling fsockopen with host api.google.com connection_timeout 0
2022-05-23 23:05:15.007202 soap_transport_http: set response timeout to 30
2022-05-23 23:05:15.007262 soap_transport_http: socket connected
2022-05-23 23:05:15.007317 soap_transport_http: set header Content-Length: 943
2022-05-23 23:05:15.007344 soap_transport_http: HTTP request: POST /search/beta2 HTTP/1.0
2022-05-23 23:05:15.007368 soap_transport_http: HTTP header: Host: api.google.com
2022-05-23 23:05:15.007389 soap_transport_http: HTTP header: User-Agent: NuSOAP/0.9.5 (1.123)
2022-05-23 23:05:15.007408 soap_transport_http: HTTP header: Content-Type: text/xml; charset=UTF-8
2022-05-23 23:05:15.007428 soap_transport_http: HTTP header: SOAPAction: "urn:GoogleSearch"
2022-05-23 23:05:15.007460 soap_transport_http: HTTP header: Content-Length: 943
2022-05-23 23:05:15.007545 soap_transport_http: wrote data to socket, length = 1122
2022-05-23 23:05:15.012008 soap_transport_http: read line of 24 bytes: HTTP/1.0 404 Not Found
2022-05-23 23:05:15.012062 soap_transport_http: read line of 40 bytes: Content-Type: text/html; charset=UTF-8
2022-05-23 23:05:15.012091 soap_transport_http: read line of 30 bytes: Referrer-Policy: no-referrer
2022-05-23 23:05:15.012118 soap_transport_http: read line of 22 bytes: Content-Length: 1573
2022-05-23 23:05:15.012145 soap_transport_http: read line of 37 bytes: Date: Mon, 23 May 2022 19:05:15 GMT
2022-05-23 23:05:15.012171 soap_transport_http: read line of 2 bytes: 
2022-05-23 23:05:15.012208 soap_transport_http: found end of headers after length 155
2022-05-23 23:05:15.012285 soap_transport_http: want to read content of length 1573
2022-05-23 23:05:15.012320 soap_transport_http: read buffer of 1573 bytes
2022-05-23 23:05:15.012354 soap_transport_http: read to EOF
2022-05-23 23:05:15.012375 soap_transport_http: read body of length 1573
2022-05-23 23:05:15.012397 soap_transport_http: received a total of 1728 bytes of data from server
2022-05-23 23:05:15.012475 soap_transport_http: closed socket
2022-05-23 23:05:15.012526 soap_transport_http: end of send()
2022-05-23 23:05:15.012584 nusoap_client: Error: HTTP Error: Unsupported HTTP response status 404 Not Found (soapclient->response has contents of the response)