Im writing a mod downloader for a game, Im able to download mods from
my server which works fine. But I want it to download from a popular
file hosting site. I've got this to work, but it only seems to
download the file while fiddler is running (While its capuring the
Wininet traffic!).
Im using the HttpWebRequest and HttpWebResponse in
VB.NET (instead of
the Wininet class because of their ease)
I've turned off all of the options in fiddler, and then downloaded my
file and it still works. The only time the download dosen;t work is
when I disable the request.proxy = nothing. So Im guessing its a
proxy issue, or theres somthing fiddler is automaticly doing( which I
am not in my
vb.net program).
Note: This is actually a redirection, my first response gave me the
full url and file name (the first response also contained Vary: cache)
but as I said it downloads when fiddler is captures traffic.
Heres the server response:
REQUEST=
GET /filename.txt HTTP/1.1
User-Agent: Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 6.0; Trident/
4.0; GTB6; SLCC1; .NET CLR 2.0.50727; Media Center PC 5.0; .NET CLR
1.1.4322; .NET CLR 3.5.21022; .NET CLR 3.5.30729; InfoPath.1; .NET CLR
3.0.30729; Creative AutoUpdate v1.10.10)
Accept-Language: en-gb
Host:
host.com
Cookie: ukey=lllyamyvelaldcdyycwexylayl2avmll
Connection: Keep-Alive
RESPONSE=
HTTP/1.1 200 OK
Server: LRBD-2.0.1
Date: Thu, 26 Dec 2009 17:36:28 GMT
Connection: close
Accept-Ranges: bytes
Content-transfer-encoding: binary
Content-Length: 356445
Content-Disposition: attachment; filename="Filename.txt"
Content-Type: application/x-rar-compressed