Get html code for Windows Phone Market

I want to get the html code on the pages of the Windows phone market. So far, I have not encountered any problems, but today every time I retrieve data, the following error is displayed.

[...] Your request is submitted by an automatic process. If this is not the case, let us know by clicking here to redirect [...].

I tried to use a proxy if many requests are called from the same IP address, but this does not lead to any progression. Do you happen to know why this problem occurs, any ideas on possible ways? Any help would be very much appreciated. The main goal is to somehow get information about the Windows Phone application from the market.

+4
source share
1 answer

It seems that they discover the user agent and block the request if it is invalid / known to the device. I managed to get it to work with curl, for example. curl -A 'Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.1.9) Gecko/20071025 Firefox/2.0.0.9' http://www.windowsphone.com/en-us/store/app/pinpoint-by-foundbite/ff9fdf41-aabd-4cac-9086-8710bd327da9

For asp.net, if you use HttpRequest to get html content, try the following:

HttpWebRequest request = (HttpWebRequest)WebRequest.Create(url);

request.UserAgent = "Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.1.9) Gecko/20071025 Firefox/2.0.0.9";

For PHP, you can also install your user agent via curl_setopt.

I could not find out if there is an IP based block after several requests.

+3
source

All Articles