Strip HTTP headers

Removes HTTP headers from a request or response by looking for the first instance of a double newline.

Input: TextResult: Text

Text input

Run to see the result

Examples

Keep only a JSON response body

Input

HTTP/1.1 200 OK
Content-Type: application/json

{"ok":true,"version":"2.0"}

Expected answer

{"ok":true,"version":"2.0"}
Read a CRLF-framed plain-text response

The downloaded sample preserves CRLF line endings; the response body retains its final line ending.

Input

917d34673aebfcb103fb2dec.bin

52 bytes

Download

Expected answer

ready
Keep a blank paragraph inside the body

Input

HTTP/1.1 200 OK
Content-Type: text/plain

First paragraph.

Second paragraph.

Expected answer

First paragraph.

Second paragraph.
Extract an empty body from a 204 response

Input

HTTP/1.1 204 No Content
Cache-Control: no-store

Expected answer

Empty result
Recognize that chunk framing still needs decoding

This operation removes headers only. Use Dechunk HTTP Response for the remaining chunk framing.

Input

HTTP/1.1 200 OK
Transfer-Encoding: chunked

4
Wiki
0

Expected answer

4
Wiki
0

Format reference: Strip HTTP headers background and specification

Related tools

Browse networking tools