获取本机IP,用户代理
1、获取本机IP:http://httpbin.org/ip

2、获取用户代理
https://httpbin.org/user-agent

https://httpbin.org/
httpbin(1): HTTP Request & Response Service
Freely hosted in HTTP, HTTPS, & EU flavors by Kenneth Reitz &Runscope.
BONUSPOINTS
now.httpbin.orgThe current time, in a variety of formats.
ENDPOINTS
/This page./ipReturns Origin IP./user-agentReturns user-agent./headersReturns header dict./getReturns GET data./postReturns POST data./patchReturns PATCH data./putReturns PUT data./deleteReturns DELETE data/anythingReturns request data, including method used./anything/:anythingReturns request data, including the URL./encoding/utf8Returns page containing UTF-8 data./gzipReturns gzip-encoded data./deflateReturns deflate-encoded data./brotliReturns brotli-encoded data./status/:codeReturns given HTTP Status code./response-headers?key=valReturns given response headers./redirect/:n302 Redirects n times./redirect-to?url=foo302 Redirects to the foo URL./redirect-to?url=foo&status_code=307307 Redirects to thefoo URL./relative-redirect/:n302 Relative redirects n times./absolute-redirect/:n302 Absolute redirects n times./cookiesReturns cookie data./cookies/set?name=valueSets one or more simple cookies./cookies/delete?nameDeletes one or more simple cookies./basic-auth/:user/:passwdChallenges HTTPBasic Auth./hidden-basic-auth/:user/:passwd404'd BasicAuth./digest-auth/:qop/:user/:passwd/:algorithmChallenges HTTP Digest Auth./digest-auth/:qop/:user/:passwdChallenges HTTP Digest Auth./stream/:nStreams min(n, 100) lines./delay/:nDelays responding for min(n, 10) seconds./drip?numbytes=n&duration=s&delay=s&code=codeDrips data over a duration after an optional initial delay, then (optionally) returns with the given status code./range/1024?duration=s&chunk_size=codeStreams n bytes, and allows specifying a Range header to select a subset of the data. Accepts a chunk_size and request duration parameter./htmlRenders an HTML Page./robots.txtReturns some robots.txt rules./denyDenied by robots.txt file./cacheReturns 200 unless an If-Modified-Since or If-None-Match header is provided, when it returns a 304./etag/:etagAssumes the resource has the given etag and responds to If-None-Match header with a 200 or 304 and If-Match with a 200 or 412 as appropriate./cache/:nSets a Cache-Control header for n seconds./bytes/:nGenerates n random bytes of binary data, accepts optional seed integer parameter./stream-bytes/:nStreams n random bytes of binary data in chunked encoding, accepts optional seed and chunk_size integer parameters./links/:nReturns page containing n HTML links./imageReturns page containing an image based on sent Accept header./image/pngReturns a PNG image./image/jpegReturns a JPEG image./image/webpReturns a WEBP image./image/svgReturns a SVG image./forms/postHTML form that submits to /post/xmlReturns some XML
浙公网安备 33010602011771号