Set up an HTTP proxy to insert a header

2019-01-21 10:44发布

I need to test some HTTP interaction with a client I'd rather not modify. What I need to test is the behavior of the server when the client's requests include a certain, static header.

I'm thinking the easiest way to run this test is to set up an HTTP proxy that inserts the header on every request. What would be the simplest way to set this up?

7条回答
爱情/是我丢掉的垃圾
2楼-- · 2019-01-21 11:26

Rather than using a proxy, I'm using the Firefox plugin "Modify Headers" to insert headers (in my case, to fake a login using the Single Sign On so I can test as different people).

查看更多
登录 后发表回答