N niqpw Member Licensed User Longtime User Jun 28, 2011 #1 Hi I've been using HTTP library and httpUtils. I've noticed that "http://www.amazon.co.uk" has started to return an error. As an example if you replace "http://www.facebook.com" with "http://www.amazon.co.uk" in the example shown here you get an error "Service Temporarily Unavailable 503" Any ideas why and if this can be resolved, it used to work so I guess Amazon have changed something? Thanks
Hi I've been using HTTP library and httpUtils. I've noticed that "http://www.amazon.co.uk" has started to return an error. As an example if you replace "http://www.facebook.com" with "http://www.amazon.co.uk" in the example shown here you get an error "Service Temporarily Unavailable 503" Any ideas why and if this can be resolved, it used to work so I guess Amazon have changed something? Thanks
Erel B4X founder Staff member Licensed User Longtime User Jun 28, 2011 #2 This usually means that they are temporarily blocking your device IP. This can happen if you make repetitive calls to a web server. Upvote 0
This usually means that they are temporarily blocking your device IP. This can happen if you make repetitive calls to a web server.
N niqpw Member Licensed User Longtime User Jun 28, 2011 #3 Thanks Erel I'm not sure that this is the issue though, I can use a browser to view amazon.co.uk fine on my phone (over mobile network) and emulator. Both phone and emulator stopped working at the same time and will no longer allow browsing to amazon.co.uk using my app. Is it possible someone could test the code referenced above with the simple url change? Upvote 0
Thanks Erel I'm not sure that this is the issue though, I can use a browser to view amazon.co.uk fine on my phone (over mobile network) and emulator. Both phone and emulator stopped working at the same time and will no longer allow browsing to amazon.co.uk using my app. Is it possible someone could test the code referenced above with the simple url change?
Erel B4X founder Staff member Licensed User Longtime User Jun 28, 2011 #4 It seems like they require you to include an Accept header in your request. You should add this header in HttpUtilsService line 54: Code: req.SetHeader("Accept","text/html,application/xhtml+xml") Upvote 0
It seems like they require you to include an Accept header in your request. You should add this header in HttpUtilsService line 54: Code: req.SetHeader("Accept","text/html,application/xhtml+xml")
N niqpw Member Licensed User Longtime User Jun 28, 2011 #5 Erel :sign0188: That works! thanks for your speedy help, would never have figured that out. Upvote 0
Erel B4X founder Staff member Licensed User Longtime User Jun 28, 2011 #6 I've used FireBug add-on in my desktop to inspect the request headers. Then I added all the headers to the device code and it worked. Eventually I found out that only the Accept header is required. Upvote 0
I've used FireBug add-on in my desktop to inspect the request headers. Then I added all the headers to the device code and it worked. Eventually I found out that only the Accept header is required.
N niqpw Member Licensed User Longtime User Jun 28, 2011 #7 Ah, I wondered how you'd figured that out. Firebug looks useful, I've used IE and Chrome tools like this before, but this looks more powerful. Cheers Upvote 0
Ah, I wondered how you'd figured that out. Firebug looks useful, I've used IE and Chrome tools like this before, but this looks more powerful. Cheers