Fake
Fake

Reputation:

How can I change a user agent string programmatically?

I want to write a program that changes the HTTP headers in my requests that are sent by my web-browser. I believe it can be done with a proxy server. So, I'd like to write a proxy server.

How can I do this in Python?

Upvotes: 1

Views: 884

Answers (2)

kgiannakakis
kgiannakakis

Reputation: 104178

This is a list of HTTP proxies in python.

Upvotes: 1

Marc Novakowski
Marc Novakowski

Reputation: 45398

Why not use an existing proxy such as Charles HTTP Proxy? It has the ability to rewrite headers and do all sorts of cool stuff to requests and responses.

Upvotes: 2

Related Questions