[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Mldonkey-users] [patch #4433] allow download of .torrent file from brok
From: |
joakim verona |
Subject: |
[Mldonkey-users] [patch #4433] allow download of .torrent file from broken tracker |
Date: |
Tue, 20 Sep 2005 09:02:33 +0000 |
User-agent: |
Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8b3) Gecko/20050712 Firefox/1.0+ |
Follow-up Comment #2, patch #4433 (project mldonkey):
here is a small improvement, so that the initial header request will send
cookies. this is ugly but works for bnbt trackers which require logon:
H.req_request = H.GET; (* JAVE Hack H.HEAD *)
(*begin from btInteractive.ml JAVE Hack*)
H.req_headers = (try
let cookies = List.assoc u.Url.server !!BTOptions.cookies in
[ ( "Cookie", List.fold_left (λ res (key, value) →
if res = "" then
key ^ "=" ^ value
else
res ^ "; " ^ key ^ "=" ^ value
) "" cookies
) ]
with Not_found → []);
(*end from btInteractive.ml*)
_______________________________________________________
Reply to this item at:
<http://savannah.nongnu.org/patch/?func=detailitem&item_id=4433>
_______________________________________________
Message sent via/by Savannah
http://savannah.nongnu.org/