[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]

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



#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
_______________________________________________
tor-bugs mailing list
tor-bugs@xxxxxxxxxxxxxxxxxxxx
https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-bugs