Live data from Hacker News

Show HN: HTTP Mock – Intercept, debug and mock HTTP(S) with zero setup

httptoolkit.tech

11–20 of 86 posts

Re: Show HN: HTTP Mock – Intercept, debug and mock HTTP(S) with zero setup

#11

There are full opensource alternative for this? I like the product, I'm testing it right now. But I'm curious if there is a way to accomplish something like this with existing opensource tools or a similar full opensource project.

HTTP Toolkit is fully open source, primarily AGPL: https://github.com/httptoolkit/. That includes the Pro version too - it's not open core, it's just open source all the way down.

There are other tools that exist anyway, but all the big ones (Fiddler & Charles, for Windows & OSX respectively) are very much closed source. The other similar open source competitor I'm familiar with is James Proxy (https://github.com/james-proxy/james) but that's now effectively unmaintained.

For comparison, using the internals of Fiddler by itself would cost $2,999 per application per year (https://www.telerik.com/purchase/fiddlercore). The standalone internals of HTTP Toolkit OTOH are on GitHub: https://github.com/httptoolkit/mockttp.

Re: Show HN: HTTP Mock – Intercept, debug and mock HTTP(S) with zero setup

#12
post #8

How does this compare Fiddler?

It has all the same core functionality, plus:

- It's open-source

- It's cross-platform

- It can do all the interception setup for you, for a single specific target. Fiddler et al set the system proxy, so there's a lot of other traffic going on, and you then need to make applications trust the certificate manually too. Notably some apps (like Node) ignore the system proxy settings entirely, which means you need code changes. HTTP Toolkit does some clever injection, and skips all of that.

- Nice & modern UI

- Built in docs for all standard HTTP status codes/headers/methods/etc

- The Pro features: validation & inline docs from 1400+ API specifications, testing & comparison of compression options, explanations for how your response will be cached & why (and warnings).

I keep meaning to do a proper comparison page (any day now), but that's the gist.

Re: Show HN: HTTP Mock – Intercept, debug and mock HTTP(S) with zero setup

#14
post #8

How does this compare Fiddler?

It has all the same core functionality, plus: - It's open-source - It's cross-platform - It can do all the interception setup for you, for a single specific target. Fiddler et al set the system proxy, so there's a lot of other traffic going on, and you then need to make applications trust the certificate manually too. Notably some apps (like Node) ignore the system proxy settings entirely, which means you need code c…

What about intercepting requests from other devices on the same network? Fiddler and Charles both let you set a proxy on Android/iOS devices pointing to your instance.

Re: Show HN: HTTP Mock – Intercept, debug and mock HTTP(S) with zero setup

#17
post #14

Earlier quoted context omitted.

It has all the same core functionality, plus: - It's open-source - It's cross-platform - It can do all the interception setup for you, for a single specific target. Fiddler et al set the system proxy, so there's a lot of other traffic going on, and you then need to make applications trust the certificate manually too. Notably some apps (like Node) ignore the system proxy settings entirely, which means you need code c…

What about intercepting requests from other devices on the same network? Fiddler and Charles both let you set a proxy on Android/iOS devices pointing to your instance.

HTTP Toolkit can definitely intercept Android & iOS or other network devices, it just can't do it for you automatically (yet. Watch this space: https://github.com/httptoolkit/feedback/issues/10).

If you want to do intercept something manually, there's general instructions under the 'Anything' interception option. In short:

- Set the proxy on the device to point at your machine's local IP, usually on port 8000 (active port is shown under the 'Anything' option)

- Trust the generated MITM certificate on your device, so you can intercept HTTPS too (path to the certificate also shown under 'Anything').

Fundamentally, HTTP Toolkit, Charles & Fiddler are all HTTP & HTTPS proxies, so they all allow intercepting the same things, it's just a matter of how easy the setup process is.

Re: Show HN: HTTP Mock – Intercept, debug and mock HTTP(S) with zero setup

#18

Am getting too many redirects opening that link

Huh, that shouldn't happen! What browser & OS are you using?

I'm getting the same on Chrome/Mac. Requesting /mock/ just 301's me back to /mock/

https://pastebin.com/vmgSU6nj

Post reply on HN