splitfeed/android-market-api-php — Issue #4: HTTP code 400 for examples
Author: olamm2k
Created: 2011-10-18 15:39:16+00:00
State: open

Hi,

I've made sure my account details are correct via local.php (and verified that getting them wrong results in a different error message). Whenever I try to load one of the examples, I get the following:

* Connected to android.clients.google.com (74.125.230.133) port 80 (#0)
> POST /market/api/ApiRequest HTTP/1.1
User-Agent: Android-Market/2 (sapphire PLAT-RC33); gzip
Host: android.clients.google.com
Accept: */*
Cookie: ANDROID=DQAAAKoAAADXzn3...
Content-Type: application/x-www-form-urlencoded
Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7
Content-Length: 466

< HTTP/1.1 400 Bad Request
< Content-Type: text/html; charset=UTF-8
< Date: Tue, 18 Oct 2011 15:24:46 GMT
< Expires: Tue, 18 Oct 2011 15:24:46 GMT
< Cache-Control: private, max-age=0
< X-Content-Type-Options: nosniff
< X-Frame-Options: SAMEORIGIN
< X-XSS-Protection: 1; mode=block
< Server: GSE
< Transfer-Encoding: chunked
<
* Connection #0 to host android.clients.google.com left intact
* Closing connection #0
PHP Fatal error: Uncaught exception 'Exception' with message 'HTTP request returned code 400' in android-market-api-php/Market/MarketSession.php:212
Stack trace:
#0 android-market-api-php/Market/MarketSession.php(160): MarketSession->executeRawHttpQuery('??????DQAAAKoAA...')
#1 android-market-api-php/Market/MarketSession.php(147): MarketSession->executeProtobuf(Object(Request))
#2 android-market-api-php/examples/test_categories.php(15): MarketSession->execute(Object(Request_RequestGroup))
#3 {main}
thrown in android-market-api-php/Market/MarketSession.php on line 212

Have you seen this before?

Regards,
Oliver