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><ns2397:doGoogleSearch xmlns:ns2397="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></ns2397: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, 24 Feb 2024 23:53:23 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

2024-02-25 02:53:23.399937 nusoap_client: ctor wsdl= timeout=0 response_timeout=30
endpoint=string(34) "http://api.google.com/search/beta2"
2024-02-25 02:53:23.399997 nusoap_client: instantiate SOAP with endpoint at http://api.google.com/search/beta2
2024-02-25 02:53:23.400007 nusoap_client: setUseCURL(0)
2024-02-25 02:53:23.400038 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)
2024-02-25 02:53:23.400063 nusoap_client: serializing param array for operation doGoogleSearch
2024-02-25 02:53:23.400082 nusoap_client: in serialize_val: name=Googlekey, type=, name_ns=, type_ns=, use=encoded, soapval=
value=string(15) "Your Google key"
attributes=bool(false)
2024-02-25 02:53:23.400109 nusoap_client: serialize_val: serialize string
2024-02-25 02:53:23.400124 nusoap_client: serialize_val returning <Googlekey xsi:type="xsd:string">Your Google key</Googlekey>
2024-02-25 02:53:23.400131 nusoap_client: in serialize_val: name=queryStr, type=, name_ns=, type_ns=, use=encoded, soapval=
value=string(8) "robotics"
attributes=bool(false)
2024-02-25 02:53:23.400139 nusoap_client: serialize_val: serialize string
2024-02-25 02:53:23.400145 nusoap_client: serialize_val returning <queryStr xsi:type="xsd:string">robotics</queryStr>
2024-02-25 02:53:23.400150 nusoap_client: in serialize_val: name=startFrom, type=, name_ns=, type_ns=, use=encoded, soapval=
value=int(0)
attributes=bool(false)
2024-02-25 02:53:23.400158 nusoap_client: serialize_val: serialize int
2024-02-25 02:53:23.400163 nusoap_client: serialize_val returning <startFrom xsi:type="xsd:int">0</startFrom>
2024-02-25 02:53:23.400168 nusoap_client: in serialize_val: name=maxResults, type=, name_ns=, type_ns=, use=encoded, soapval=
value=int(10)
attributes=bool(false)
2024-02-25 02:53:23.400175 nusoap_client: serialize_val: serialize int
2024-02-25 02:53:23.400179 nusoap_client: serialize_val returning <maxResults xsi:type="xsd:int">10</maxResults>
2024-02-25 02:53:23.400184 nusoap_client: in serialize_val: name=filter, type=, name_ns=, type_ns=, use=encoded, soapval=
value=bool(true)
attributes=bool(false)
2024-02-25 02:53:23.400190 nusoap_client: serialize_val: serialize boolean
2024-02-25 02:53:23.400194 nusoap_client: serialize_val returning <filter xsi:type="xsd:boolean">1</filter>
2024-02-25 02:53:23.400198 nusoap_client: in serialize_val: name=restrict, type=, name_ns=, type_ns=, use=encoded, soapval=
value=string(0) ""
attributes=bool(false)
2024-02-25 02:53:23.400205 nusoap_client: serialize_val: serialize string
2024-02-25 02:53:23.400210 nusoap_client: serialize_val returning <restrict xsi:type="xsd:string"></restrict>
2024-02-25 02:53:23.400214 nusoap_client: in serialize_val: name=adultContent, type=, name_ns=, type_ns=, use=encoded, soapval=
value=bool(true)
attributes=bool(false)
2024-02-25 02:53:23.400220 nusoap_client: serialize_val: serialize boolean
2024-02-25 02:53:23.400225 nusoap_client: serialize_val returning <adultContent xsi:type="xsd:boolean">1</adultContent>
2024-02-25 02:53:23.400230 nusoap_client: in serialize_val: name=language, type=, name_ns=, type_ns=, use=encoded, soapval=
value=string(0) ""
attributes=bool(false)
2024-02-25 02:53:23.400237 nusoap_client: serialize_val: serialize string
2024-02-25 02:53:23.400242 nusoap_client: serialize_val returning <language xsi:type="xsd:string"></language>
2024-02-25 02:53:23.400246 nusoap_client: in serialize_val: name=iencoding, type=, name_ns=, type_ns=, use=encoded, soapval=
value=string(0) ""
attributes=bool(false)
2024-02-25 02:53:23.400253 nusoap_client: serialize_val: serialize string
2024-02-25 02:53:23.400258 nusoap_client: serialize_val returning <iencoding xsi:type="xsd:string"></iencoding>
2024-02-25 02:53:23.400262 nusoap_client: in serialize_val: name=oendcoding, type=, name_ns=, type_ns=, use=encoded, soapval=
value=string(0) ""
attributes=bool(false)
2024-02-25 02:53:23.400268 nusoap_client: serialize_val: serialize string
2024-02-25 02:53:23.400273 nusoap_client: serialize_val returning <oendcoding xsi:type="xsd:string"></oendcoding>
2024-02-25 02:53:23.400278 nusoap_client: wrapping RPC request with encoded method element
2024-02-25 02:53:23.400301 nusoap_client: In serializeEnvelope length=551 body (max 1000 characters)=<ns2397:doGoogleSearch xmlns:ns2397="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></ns2397:doGoogleSearch> style=rpc use=encoded encodingStyle=http://schemas.xmlsoap.org/soap/encoding/
2024-02-25 02:53:23.400306 nusoap_client: headers:
bool(false)
2024-02-25 02:53:23.400311 nusoap_client: namespaces:
array(0) {
}
2024-02-25 02:53:23.400327 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/
2024-02-25 02:53:23.400345 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><ns2397:doGoogleSearch xmlns:ns2397="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></ns2397:doGoogleSearch></SOAP-ENV:Body></SOAP-ENV:Envelope>
2024-02-25 02:53:23.400364 nusoap_client: transporting via HTTP
2024-02-25 02:53:23.400447 nusoap_client: sending message, length=943
2024-02-25 02:53:23.400374 soap_transport_http: ctor url=http://api.google.com/search/beta2 use_curl=0 curl_options:
array(0) {
}
2024-02-25 02:53:23.400387 soap_transport_http: parsed URL scheme = http
2024-02-25 02:53:23.400392 soap_transport_http: parsed URL host = api.google.com
2024-02-25 02:53:23.400396 soap_transport_http: parsed URL path = /search/beta2
2024-02-25 02:53:23.400404 soap_transport_http: set header Host: api.google.com
2024-02-25 02:53:23.400421 soap_transport_http: set header User-Agent: NuSOAP/0.9.5 (1.123)
2024-02-25 02:53:23.400431 soap_transport_http: set header Content-Type: text/xml; charset=UTF-8
2024-02-25 02:53:23.400437 soap_transport_http: set header SOAPAction: "urn:GoogleSearch"
2024-02-25 02:53:23.400459 soap_transport_http: entered send() with data of length: 943
2024-02-25 02:53:23.400476 soap_transport_http: connect connection_timeout 0, response_timeout 30, scheme http, host api.google.com, port 80
2024-02-25 02:53:23.400486 soap_transport_http: calling fsockopen with host api.google.com connection_timeout 0
2024-02-25 02:53:23.444882 soap_transport_http: set response timeout to 30
2024-02-25 02:53:23.444902 soap_transport_http: socket connected
2024-02-25 02:53:23.444929 soap_transport_http: set header Content-Length: 943
2024-02-25 02:53:23.444936 soap_transport_http: HTTP request: POST /search/beta2 HTTP/1.0
2024-02-25 02:53:23.444943 soap_transport_http: HTTP header: Host: api.google.com
2024-02-25 02:53:23.444948 soap_transport_http: HTTP header: User-Agent: NuSOAP/0.9.5 (1.123)
2024-02-25 02:53:23.444952 soap_transport_http: HTTP header: Content-Type: text/xml; charset=UTF-8
2024-02-25 02:53:23.444958 soap_transport_http: HTTP header: SOAPAction: "urn:GoogleSearch"
2024-02-25 02:53:23.444962 soap_transport_http: HTTP header: Content-Length: 943
2024-02-25 02:53:23.444997 soap_transport_http: wrote data to socket, length = 1122
2024-02-25 02:53:23.560863 soap_transport_http: read line of 24 bytes: HTTP/1.0 404 Not Found
2024-02-25 02:53:23.560911 soap_transport_http: read line of 40 bytes: Content-Type: text/html; charset=UTF-8
2024-02-25 02:53:23.560920 soap_transport_http: read line of 30 bytes: Referrer-Policy: no-referrer
2024-02-25 02:53:23.560928 soap_transport_http: read line of 22 bytes: Content-Length: 1573
2024-02-25 02:53:23.560939 soap_transport_http: read line of 37 bytes: Date: Sat, 24 Feb 2024 23:53:23 GMT
2024-02-25 02:53:23.560946 soap_transport_http: read line of 2 bytes: 
2024-02-25 02:53:23.560969 soap_transport_http: found end of headers after length 155
2024-02-25 02:53:23.561026 soap_transport_http: want to read content of length 1573
2024-02-25 02:53:23.561047 soap_transport_http: read buffer of 1569 bytes
2024-02-25 02:53:23.561059 soap_transport_http: read to EOF
2024-02-25 02:53:23.561081 soap_transport_http: read body of length 1569
2024-02-25 02:53:23.561092 soap_transport_http: received a total of 1724 bytes of data from server
2024-02-25 02:53:23.561120 soap_transport_http: closed socket
2024-02-25 02:53:23.561145 soap_transport_http: end of send()
2024-02-25 02:53:23.561182 nusoap_client: Error: HTTP Error: Unsupported HTTP response status 404 Not Found (soapclient->response has contents of the response)