Hi guys:
I'm writing a simple application that will download some piece of data from a website then I can use it later for any purpose
The following is the request and response copied from Firebug as the browser did that...
when u type http://x5.travian.com.sa/ajax.php?f=k7&x=18&y=-186&xx=12&yy=-192
you will get a php file has some data..
But when I make a request with HttpWebRequest I get wrong data (some unknown letters)
Can anyone help me in that.. and if I have to make some encodings or what??
I will be so appreciated..
Response
Server nginx
Date Tue, 04 Jan 2011 23:03:49 GMT
Content-Type application/json; charset=UTF-8
Transfer-Encoding chunked
Connection keep-alive
X-Powered-By PHP/5.2.8
Expires Mon, 26 Jul 1997 05:00:00 GMT
Last-Modified Tue, 04 Jan 2011 23:03:49 GMT
Cache-Control no-store, no-cache, must-revalidate, post-check=0, pre-check=0
Pragma no-cache
Content-Encoding gzip
Vary Accept-Encoding
Request
Host x5.travian.com.sa
User-Agent Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US; rv:1.9.2.13)
Gecko/20101203 Firefox/3.6.13
Accept text/html,application/xhtml+xml,application/xml;q=0.9,/;q=0.8
Accept-Language en-us,en;q=0.5
Accept-Encoding gzip,deflate
Accept-Charset ISO-8859-1,utf-8;q=0.7,*;q=0.7
Keep-Alive 115
Connection keep-alive
Cookie CAD=57878984%231292375897%230%230%23%230; T3E=%3DImYykTN2EzMmhjO5QTM2QDN2oDM1ITOyoDOxIjM4EDN5ITM6gjO4MDOxIWZyQWMipTZu9metl2ctl2c6MDNxADN6MDNxADNjMDNxADNjMDNxADN; orderby_b1=0; orderby_b=0; orderby2=0; orderby=0