8 ms·
Httpbin – HTTP Client Testing Service
- johns 11y agoThanks for reposting this. We recently took this over from Kenneth Reitz and I'd love to hear your suggestions for improvements or additions.
- moviuro 11y agoIPv6 support would be great (take a look at what http://icanhazip.com http://icanhazip.com does: http://ipv4.icanhazip.com http://ipv4.icanhazip.com and http://ipv6.icanhazip.com http://ipv6.icanhazip.com) Anyway, sounds really cool :)
- deleted 11y ago[deleted]
- billyhoffman 11y agoEndpoints to test various SSL/TLS/X.509 stuff would be super helpful. Call would returning a stock HTTP response body, but with different changes to the SSL/TLS handshake (you will have to use different host names to do this) https://expired.x509.httpbin.org/ https://expired.x509.httpbin.org/ - returns an otherwise valid cert that has expired https://wrongcn.x509.httpbin.org/ https://wrongcn.x509.httpbin.org/ - returns an otherwise valid cert with a different CN name https://sslv3.tls.httpbin.org/ https://sslv3.tls.httpbin.org/ - only negotiates an SSLv3 connection https//3des.tls.httpbin.org/ - only negotiates to use 3DES as the cipher
- acdha 11y agoI've wanted the ability to combine things – e.g. setting headers on a non-200 response. It'd be nice if there was a way to combine supported options into a single request or at least as many as will fit in to the querystring.
- de_dave 11y agoI'd like to see a method-neutral version of /get, /post, /patch et al - i.e. one that responds no matter what HTTP method is passed. The response would then include "method": "BLAH" k/v indicating the method that was used.
- impostervt 11y agoVery useful site for testing purposes!
- jo909 11y agoWhat is the "EU" flavour?
- userbinator 11y agoAfter seeing HTTP, then HTTPS, I was half-expecting the URL for that one to be eu://httpbin.org/
- johns 11y agoIt was hosted in an EU-based datacenter on Heroku (to reduce latencies, not for any specific privacy reasons), but I need to check to see if we are still hosting it there.
- jo909 11y agoAh, okay. Because of the way it is listed I thought it was some protocol extension or other HTTP-related speciality, not a different location. Thanks for clearing that up.
- diggan 11y agoI tend to use http://requestb.in/ http://requestb.in/ since it's a lot simpler to use. Basically press on the button in the middle, copy+paste url and then reload page once webhook is there. Also, I created this nifty shorthand for use in the terminal: alias bin_me="curl --silent -X POST http://requestb.in/api/v1/bins | jq -r '\"http://requestb.in/\(.name)?inspect\"'" Requires JQ (could easily not require that) and you'll just remove the ?inspect when you want to use the bin.
- crabasa 11y agoRequestBin isn't a substitute for HttpBin, they do 2 completely different things: RequestBin = easily provision a url (useful for configuring a webhook) and inspect requests to that url. HttpBin = pre-defined urls that return specific responses (headers & payloads). Good for testing http clients. Fun fact: both tools are operated by the awesome people at http://Runscope.com http://Runscope.com.
- SnootyMonkey 11y agoSimilar to RequestBin is http://posthere.io/ http://posthere.io/ (Disclosure: I wrote it)
- billyhoffman 11y agoThis solves a problem that requestb.in does not. Namely, endpoints that predictably return various HTTP headers or HTTP content. This isn't about just testing to see what your app is sending. This is about testing how your application or HTTP client or whatever handles various weird HTTP responses and features. If I need to test how my application responds to a relative URL in a Location header, I can hit the /relative-redirect/:n endpoint. Same for Absolute urls via /absolute-redirect/:n. The If-Not-Modified stuff is also helpful.
- orliesaurus 11y agoThis is a great service and I think it was the idea that then spawned another service - http://mockbin.org http://mockbin.org. Funnily enough I use both depending on what I'm trying to achieve, with httpbin being more immediate and mockbin being for more in-depth/complex testing. Good job!
- sinzone 11y agoWith output in JSON/YAML/XML: http://mockbin.com/ip http://mockbin.com/ip
- mansilladev 11y agoI prefer this offer all of those "what is my IP?" web sites. No ads or captcha. Plus, it's in JSON. http://httpbin.org/ip http://httpbin.org/ip
- yclept 11y agohttps://canhazip.com/ https://canhazip.com/
- xxdesmus 11y agoAlso https://canhazip.com/more https://canhazip.com/more or https://canhazip.com/headers https://canhazip.com/headers if you want additional headers. v4 and v6 compatible, just use curl -4 or curl -6 (not dedicated subdomain right now, might add in the future).
- tadfisher 11y agohttp://curlmyip.de http://curlmyip.de
- steeef 11y agohttp://ipinfo.io/ip http://ipinfo.io/ip (or http://ipinfo.io http://ipinfo.io if you want geolocation info too).
- mansilladev 11y agoOh, fancy. Thanks for sharing this one.
- johns 11y agojsonip.org too :)
- jlhamilton 11y agoYou can also just Google it: https://www.google.com/#q=ip https://www.google.com/#q=ip
- voltagex_ 11y ago
- enrmarc 11y agoOfftopic: how did he turn the README.rst into a webpage?
- johns 11y agoI think it was something called 'ronn' https://github.com/Runscope/httpbin/issues/200 https://github.com/Runscope/httpbin/issues/200
- elchief 11y agoLove it but our fucking Cisco ScanSafe keeps marking it as evil every time it updates.
- sinzone 11y agoAwesome service! We use it a lot in conjunction with other tools. Didn't know it's actually 4 years old already [1]. [1] https://news.ycombinator.com/item?id=2649326 https://news.ycombinator.com/item?id=2649326
- throwaway3918 11y agohttps://wtfismyip.com/ https://wtfismyip.com/ is nice too, for headers and IP addresses.