Bug 115393 - Torrents with pass keys
Summary: Torrents with pass keys
Status: RESOLVED FIXED
Alias: None
Product: ktorrent
Classification: Applications
Component: general (show other bugs)
Version: unspecified
Platform: unspecified Linux
: NOR wishlist
Target Milestone: ---
Assignee: Joris Guisson
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-10-30 20:47 UTC by Joris Guisson
Modified: 2005-10-31 22:55 UTC (History)
0 users

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Joris Guisson 2005-10-30 20:47:53 UTC
Version:            (using KDE KDE 3.4.2)

Fix this :

http://ktorrent.pwsp.net/forum/viewtopic.php?p=383#383
Comment 1 Joris Guisson 2005-10-31 22:55:37 UTC
SVN commit 476218 by guisson:

Fixed issue with passkeys (115393)

BUG: 115393



 M  +1 -0      ChangeLog  
 M  +13 -3     libktorrent/torrent/httptracker.cpp  


--- trunk/extragear/network/ktorrent/ChangeLog #476217:476218
@@ -29,3 +29,4 @@
 	-114781
 	-114904
 	-115442
+	-115393
--- trunk/extragear/network/ktorrent/libktorrent/torrent/httptracker.cpp #476217:476218
@@ -155,16 +155,26 @@
 			url.addQueryItem("event",event);
 		QString epq = url.encodedPathAndQuery();
 		epq += "&info_hash=" + info_hash.toURLString();
+
+
+//   warning, this debug contains the password
+//              kdDebug(14140) << k_funcinfo << "Auth request: " << authRequest << endl;
+
 		url.setEncodedPathAndQuery(epq);
 	//	Out() << "query : " << url.query() << endl;
 		Out() << "Doing tracker request to url : " << url.prettyURL() << endl;
 
-		// set the meta data
+		
+		
 		KIO::MetaData md;
-		md["User-Agent"] = "ktorrent";
-		md["Host"] = url.host();
+		md["UserAgent"] = "ktorrent";
+		md["SendLanguageSettings"] = "false";
 		
 		KIO::TransferJob* j = KIO::get(url,true,false);
+		// set the meta data
+	//	j->addMetaData("customHTTPHeader",  "User-Agent=ktorrent\r\n");
+	//	j->addMetaData("SendLanguageSettings", "false");
+	//	j->addMetaData("PropagateHttpHeader", "true");
 		j->setMetaData(md);
 		
 		connect(j,SIGNAL(result(KIO::Job* )),this,SLOT(onResult(KIO::Job* )));