[tor-bugs] #7432 [Ooni]: Add support for sending un canonicalized HTTP headers via twisted.web.client.Agent

Tor Bug Tracker & Wiki blackhole at torproject.org
Sat Nov 10 17:12:19 UTC 2012


#7432: Add support for sending un canonicalized HTTP headers via
twisted.web.client.Agent
---------------------------------+------------------------------------------
 Reporter:  hellais              |          Owner:  hellais
     Type:  enhancement          |         Status:  new    
 Priority:  major                |      Milestone:         
Component:  Ooni                 |        Version:         
 Keywords:  ooni_test_templates  |         Parent:  #7386  
   Points:                       |   Actualpoints:         
---------------------------------+------------------------------------------
 twisted.web.client.Agent automatically converts request headers to
 canonical form (uSeR-AgEnt becomes User-Agent), this means that we are
 unable to use it for our header field manipulation test.

 I would suggest going for the path of subclassing http.HTTPClient and
 drawing inspiration from HTTPPageGetter, in particular I would look at the
 methods connectionMade and of HTTPPageGetter.

 This should then be a flag that can be passed to the HTTP test template
 that allows us to perform HTTP requests without this mangling going on.

-- 
Ticket URL: <https://trac.torproject.org/projects/tor/ticket/7432>
Tor Bug Tracker & Wiki <https://trac.torproject.org/>
The Tor Project: anonymity online


More information about the tor-bugs mailing list