ijpiantanida / talkback

A simple HTTP proxy that records and playbacks requests
MIT License
283 stars 41 forks source link

feat: add corporate proxy agent #95

Closed tristanrobert closed 1 month ago

tristanrobert commented 1 month ago

It would need a way to fetch behind corporate proxy when recording requests.

ijpiantanida commented 1 month ago

This is now supported in v4.2.0 through the new httpClient option (see README).

Let me know if this doesn't work.

tristanrobert commented 1 month ago

It works fine. Thank you. In the doc, there is a mistake it would be: httpClient: { fetchOptions: {agent}}

tristanrobert commented 1 month ago

Now I have a 301 redirect (cloudfare), which I fix it adding this: httpClient: { fetchOptions: {agent, redirect: 'follow', follow: 1}} Then I have a 404 and an empty body. I don't know yet how to fix it.