summaryrefslogtreecommitdiff
path: root/tests/data/test1122
Commit message (Collapse)AuthorAgeFilesLines
* http: ignore content-length if any transfer-encoding is usedDaniel Stenberg2021-08-311-7/+8
| | | | | Fixes #7643 Closes #7649
* tests: use %TESTNUMBER instead of fixed numberDaniel Stenberg2021-03-191-2/+2
| | | | | | | This makes the tests easier to copy and relocate to other test numbers without having to update content. Closes #6738
* runtests: provide curl's version string as %VERSION for testsDaniel Stenberg2020-10-021-3/+1
| | | | | | | | ... so that we can check HTTP requests for User-Agent: curl/%VERSION Update 600+ test cases accordingly. Closes #6037
* transfer-encoding: added new option and cmdlineDaniel Stenberg2011-04-181-1/+1
| | | | | | | | | | | Added CURLOPT_TRANSFER_ENCODING as the option to set to request Transfer Encoding in HTTP requests (if built zlib enabled). I also renamed CURLOPT_ENCODING to CURLOPT_ACCEPT_ENCODING (while keeping the old name around) to reduce the confusion when we have to encoding options for HTTP. --tr-encoding is now the new command line option for curl to request this, and thus I updated the test cases accordingly.
* TE: do the Connection: headerDaniel Stenberg2011-04-181-0/+1
| | | | | | | When TE: is inserted in the request, we must add a "Connection: TE" as well to be HTTP 1.1 compliant. If a custom Connection: header is passed in, we must use that and only append TE to it. Test case 1125 verifies TE: + custom Connection:.
* HTTP: add support for gzip and deflate Transfer-EncodingDaniel Stenberg2011-04-181-0/+69
Transfer-Encoding differs from Content-Encoding in a few subtle ways, but primarily it concerns the transfer only and not the content so when discovered to be compressed we know we have to uncompress it. There will only arrive compressed transfers in a response after we have requested them with the appropriate TE: header. Test case 1122 and 1123 verify.