1

Modifying HTTP Request line in the HTTP request

view story
linux-howto

http://stackoverflow.com – I have a HTTP proxy running as android service where i want to change the request URL from the header, But i am unable to find how to do it. Suppose i have a HTTP request coming to my proxy like below: GET /index.html HTTP/1.1 Then i want to change this request to: GET /index2.html HTTP/1.1 I Have a android HttpRequestHandler class where i get all HTTP requests. in the handle function of HttpRequestHandler class i get 'HttpRequest' class object where i need to modify the request line but this class does not provide any functions/API to do so. I can see the requested URL by calling functi (HowTos)