HTTP request and response data tool
Jump to navigation
Jump to search
<< Testing
HTTP request and response data tool[edit]
Testing the API or pressure test.
HTTP headers generator[edit]
- Apache Jmeter v. 2.7[1]
- approach 1: (1) Add config element: HTTP request defaults (2) Add Sampler: HTTP request (3) Add Listener: View results tree (4) Run the test plan
- approach 2: (1) install unofficial jmeter-plugins (2) Add Sampler: jp@gc - HTTP Raw Request[2] (3) Add Listener: View results tree (4) Run the test plan
- Fiddler free web debugging proxy for Win
telnet localhost 80 "header content" Enter Enter
- Postman (documentation) & Postman Interceptor for Chrome
Display HTTP headers of a web page[edit]
Postman | API Development Environment- Chrome : Press F12 to open the Developer Tools window -> Switch to Network panel -> Click the Headers to display the HTTP headers of a web page. (1)Section Query String Parameters for HTTP GET request (2)Section Form Data for HTTP POST request. Further reading: Chrome DevTools — Google Developers
- Firefox: Opening the Web Console - Firefox Developer Tools | MDN --> Switch to "Network" label --> Click one of URLs --> Show the Headers. (formerly Firebug)
- LiveHTTPHeaders for Firefox
- Masquerading Your Browser: also offer the tool HTTP Header Viewer [Last visited: 2012-05-16]
- curl e.g. Input the command curl -L -I <URL>[Last visited: 2018-09-20]
- Option -L, --location "If the server reports that the requested page has moved to a different location (indicated with a Location: header and a 3XX response code)." quoted from manual.
- Option -I, --head "Fetch the headers only!" quoted from manual.
- Wget - GNU Project - Free Software Foundation e.g. Input the command wget -S --spider <URL> [3][Last visited: 2018-09-20]
- Option -S, --server-response "Print the headers sent by HTTP servers and responses sent by FTP servers." quoted from manual.
- Option --spider "When invoked with this option, Wget will behave as a Web spider, which means that it will not download the pages, just check that they are there." quoted from manual.
- $ Paw – The most advanced API tool for macOS
Example result after executed curl command:
$ curl -L -I https://www.google.com HTTP/2 200 date: Thu, 20 Sep 2018 02:56:29 GMT expires: -1 cache-control: private, max-age=0 content-type: text/html; charset=ISO-8859-1 p3p: CP="This is not a P3P policy! See g.co/p3phelp for more info." server: gws x-xss-protection: 1; mode=block x-frame-options: SAMEORIGIN set-cookie: 1P_JAR=2018-09-20-02; expires=Sat, 20-Oct-2018 02:56:29 GMT; path=/; domain=.google.com set-cookie: NID=139=DXgMIx0L06ZUBLaTUD2J_pqIvfgSEo945An0URyIwGqVf_NOxPcHcaAxhNwNforv-Lw0-m6DSKX-y1wz0EhuC-tdzLHPyWYqLVOdu7VBgjH9spnMr_2MfY79uh05aYuH; expires=Fri, 22-Mar-2019 02:56:29 GMT; path=/; domain=.google.com; HttpOnly alt-svc: quic=":443"; ma=2592000; v="44,43,39,35" accept-ranges: none vary: Accept-Encoding
Redirect checker[edit]
Curl command
curl -sI -L "https://example.com/" | grep -i "^location:"
This command traces the redirect chain of a URL, printing only the destination of each redirect step. Here's the breakdown:
curl -sI -L "https://example.com/"
curl: a tool for sending HTTP requests-s(silent): quiet mode, suppresses progress bars and other status info-I(capital,--head): fetches only the HTTP headers, not the page body — faster-L(--location): if the server responds with a 3xx redirect status code (like 301, 302, 307), curl will automatically follow the new URL and keep requesting until it reaches the final page (or hits the redirect limit)"https://example.com/": the target URL to query
So this sends a HEAD request for each redirect step along the way, and prints all the response headers, which might look like:
HTTP/1.1 301 Moved Permanently Location: https://www.example.com/ ... HTTP/1.1 200 OK ...
| grep -i "^location:"
|: pipes curl's output intogrepgrep -i: searches text,-imeans case-insensitive (so it matches bothLocation:andlocation:)"^location:":^means start of line, so it only picks lines that begin withlocation:— that is, the new destination URL specified by the redirect header
This command will:
- Send a request to the target URL, fetching only headers
- Automatically follow any redirects
- Filter out every
Location:line — i.e., the destination URL of each redirect step
other tools[edit]
- Packet sniffer: Wireshark, URL Snooper
- Poster[1] for Firefox
- HttpWatch 9.0: HTTP Sniffer for IE , Firefox
and iPhone
- Steps to view the POST data: (1)start recording HTTP requests (2)click URL (3)switch the label to POST Data
echo
- httpbin.org "A simple HTTP Request & Response Service."
web security
- X-Frame-Options Header Checker Tool [Last visited: 2019-03-06]
- OWASP Zed Attack Proxy Project - OWASP [Last visited: 2019-03-06]
HTTP & HTTPS Proxy[edit]
- mitmproxy - an interactive HTTPS proxy (MIT license
) on Win , macOS
& Linux [4] - Burp Suite - Application Security Testing Software - PortSwigger
- $ Charles Web Debugging Proxy • HTTP Monitor / HTTP Proxy / HTTPS & SSL Proxy / Reverse Proxy on macOS
- $ Fiddler - Web Debugging Proxy - Telerik on Win , macOS
& Linux - $ Proxyman · Native, Modern Web Debugging Proxy · Inspect network from Mac, iOS, Android devices with ease
Web page compression check[edit]
online gzip test
- GIDZipTest: Web Page Compression (Deflate / Gzip) Test - GIDNetwork: A simple online web page compression / deflate / gzip test tool
- Port80 Software » Products » File Compression for IIS Servers
[edit]
- Web Ping
- List of HTTP status codes - Wikipedia, the free encyclopedia
- html - capturing ajax requests - Stack Overflow [Last visited: 2015-09-01]