blob: e53a654f079d27a0ea62756f6e238fba099f3bf8 [file] [log] [blame]
Tests curl command generation
Windows: curl "http://example.org/path" --compressed
Unix: curl 'http://example.org/path' --compressed
Windows: curl "http://example.org/path" --data-binary "123" --compressed
Unix: curl 'http://example.org/path' --data-binary '123' --compressed
Windows: curl "http://example.org/path" -H "Content-Type: application/x-www-form-urlencoded" --data "1^&b" --compressed
Unix: curl 'http://example.org/path' -H 'Content-Type: application/x-www-form-urlencoded' --data '1&b' --compressed
Windows: curl "http://example.org/path" -H "Content-Type: application/json" --data-binary "^{^\^"a^\^":1^}" --compressed
Unix: curl 'http://example.org/path' -H 'Content-Type: application/json' --data-binary '{"a":1}' --compressed
Windows: curl "http://example.org/path" -H "Content-Type: application/binary" --data-binary ^"1234^
00^^^^'^\^"^!^" --compressed
Unix: curl 'http://example.org/path' -H 'Content-Type: application/binary' --data-binary $'1234\r\n00\x02\x03\x04\x05\'"!' --compressed
Windows: curl "http://example.org/path" -H "Content-Type: application/binary" --data-binary ^"1234^
^00^^^^'^\^"^!^" --compressed
Unix: curl 'http://example.org/path' -H 'Content-Type: application/binary' --data-binary $'1234\r\n\x0100\x02\x03\x04\x05\'"!' --compressed
Windows: curl "http://example.org/path" -H "Content-Type: application/binary" --data-binary ^"^%^OS^%^
^%^%^OS^%^%^
^\^"^\^\^\^"'^$^&^!^" --compressed
Unix: curl 'http://example.org/path' -H 'Content-Type: application/binary' --data-binary $'%OS%\r\n%%OS%%\r\n"\\"\'$&!' --compressed
Windows: curl "http://example.org/path" -H "Content-Type: application/binary" --data-binary ^"^!^@^#^$^%^^^&*()_+~`1234567890-=^[^]^{^};':^\^",./^
^<^>?^
qwer^
t^
^
yuiopasdfghjklmnbvcxzQWERTYUIOPLKJHGFDSAZXCVBNM^" --compressed
Unix: curl 'http://example.org/path' -H 'Content-Type: application/binary' --data-binary $'!@#$%^&*()_+~`1234567890-=[]{};\':",./\r<>?\r\nqwer\nt\n\nyuiopasdfghjklmnbvcxzQWERTYUIOPLKJHGFDSAZXCVBNM' --compressed
Windows: curl "http://example.org/path" -H "Content-Type: application/binary" --data-binary "^^€^^ÿ ^܀" --compressed
Unix: curl 'http://example.org/path' -H 'Content-Type: application/binary' --data-binary $'\x7f\x80\x90\xff\x09\u0700' --compressed
Windows: curl "http://labs.ft.com/?querystring=^\[^\]^\{^\}" --compressed
Unix: curl 'http://labs.ft.com/?querystring=\[\]\{\}' --compressed
Windows: curl "http://example.org/path" -H "Content-Type: application/binary" --data-binary "^%^PATH^%^$PATH" --compressed
Unix: curl 'http://example.org/path' -H 'Content-Type: application/binary' --data-binary '%PATH%$PATH' --compressed
Windows: curl "http://example.org/path" --compressed
Unix: curl 'http://example.org/path' --compressed