Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Tamper with first line of URL request, in Firefox

I want to change first line of the HTTP header of my request, modifying the method and/or URL.

The (excellent) Tamperdata firefox plugin allows a developer to modify the headers of a request, but not the URL itself. This latter part is what I want to be able to do.

So something like...

GET http://foo.com/?foo=foo HTTP/1.1

... could become ...

GET http://bar.com/?bar=bar HTTP/1.1

For context, I need to tamper with (make correct) an erroneous request from Flash, to see if an error can be corrected by fixing the url.

Any ideas? Sounds like something that may need to be done on a proxy level. In which case, suggestions?

like image 523
aaaidan Avatar asked Nov 05 '22 11:11

aaaidan


1 Answers

Check out Charles Proxy (multiplatform) and/or Fiddler2 (Windows only) for more client-side solutions - both of these run as a proxy and can modify requests before they get sent out to the server.

If you have access to the webserver and it's running Apache, you can set up some rewrite rules that will modify the URL before it gets processed by the main HTTP engine.

like image 118
Marc Novakowski Avatar answered Nov 25 '22 05:11

Marc Novakowski