Redirected output starts response headers on same line as request body
See original GitHub issueWhen I run a POST request without redirection, I see the response headers start on a new line:
}
}
}
}
HTTP/1.1 201
Date: Mon, 21 Dec 2020 13:39:00 GMT
Content-Length: 0
But when I redirect the output, I see the HTTP/1.1 201
on the same line as the request:
}
}
}
}HTTP/1.1 201
Date: Mon, 21 Dec 2020 13:36:09 GMT
Content-Length: 0
The options I specified in each case were http -v --pretty format --unsorted
; the only difference was in the second case I redirected the output to a file.
Issue Analytics
- State:
- Created 3 years ago
- Comments:5 (4 by maintainers)
Top Results From Across the Web
Can PHP cURL retrieve response headers AND body in a ...
For this header you can go around with correctly defining request option: curl_setopt($ch, CURLOPT_HTTPHEADER, array('Expect:')); , disabling sending this ...
Read more >HTTP headers - MDN Web Docs - Mozilla
Request headers contain more information about the resource to be fetched, or about the client requesting the resource. Response headers hold ...
Read more >PycURL Quick Start — PycURL 7.45.1 documentation
To issue a network request with PycURL, the following steps are required: Create a pycurl. ... Header lines include the first status line...
Read more >HAProxy version 1.8.30 - Configuration Manual - GitHub Pages
Multiple identical headers may be folded into one single line, delimiting the values with commas, provided that their order is respected. This ...
Read more >HTTP/1.1: Header Field Definitions
The Accept request-header field can be used to specify certain media types which are acceptable for the response. Accept headers can be used...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
HTTPie 2.4.0 fixing the incorrect formatting has just been released 🥧
@sebastianczech Those are relevant bits indeed. There are quite a few scenarios that need to be handled. What has made things even more complicated, and has introduced this bug, is the new support for streamed uploads with simultaneous terminal output. I’m looking into fixing this, starting with ensuring we have tests for all the scenarios. Will publish soon.