OLD | NEW |
1 Tests curl command generation | 1 Tests curl command generation |
2 | 2 |
3 curl 'http://example.org/path' --compressed | 3 Windows: curl "http://example.org/path" --compressed |
4 curl 'http://example.org/path' --data-binary '123' --compressed | 4 Unix: curl 'http://example.org/path' --compressed |
5 curl 'http://example.org/path' -H 'Content-Type: application/x-www-form-urlencod
ed' --data '1&b' --compressed | 5 Windows: curl "http://example.org/path" --data-binary "123" --compressed |
6 curl 'http://example.org/path' -H 'Content-Type: application/json' --data-binary
'{"a":1}' --compressed | 6 Unix: curl 'http://example.org/path' --data-binary '123' --compressed |
7 curl 'http://example.org/path' -H 'Content-Type: application/binary' --data-bina
ry $'1234\r\n00\x02\x03\x04\x05\'"!' --compressed | 7 Windows: curl "http://example.org/path" -H "Content-Type: application/x-www-form
-urlencoded" --data "1^&b" --compressed |
8 curl 'http://example.org/path' -H 'Content-Type: application/binary' --data-bina
ry $'1234\r\n\x0100\x02\x03\x04\x05\'"!' --compressed | 8 Unix: curl 'http://example.org/path' -H 'Content-Type: application/x-www-form-ur
lencoded' --data '1&b' --compressed |
9 curl 'http://example.org/path' -H 'Content-Type: application/binary' --data-bina
ry $'\x7f\x80\x90\xff\x09\u0700' --compressed | 9 Windows: curl "http://example.org/path" -H "Content-Type: application/json" --da
ta-binary "^{^\^"a^\^":1^}" --compressed |
10 curl 'http://labs.ft.com/?querystring=\[\]\{\}' --compressed | 10 Unix: curl 'http://example.org/path' -H 'Content-Type: application/json' --data-
binary '{"a":1}' --compressed |
11 curl 'http://example.org/path' -H 'Content-Type: application/binary' --data-bina
ry '%PATH%$PATH' --compressed | 11 Windows: curl "http://example.org/path" -H "Content-Type: application/binary" --
data-binary ^"1234^ |
12 curl 'http://example.org/path' --compressed | |
13 | 12 |
| 13 00^^^^'^\^"^!^" --compressed |
| 14 Unix: curl 'http://example.org/path' -H 'Content-Type: application/binary' --dat
a-binary $'1234\r\n00\x02\x03\x04\x05\'"!' --compressed |
| 15 Windows: curl "http://example.org/path" -H "Content-Type: application/binary" --
data-binary ^"1234^ |
| 16 |
| 17 ^00^^^^'^\^"^!^" --compressed |
| 18 Unix: curl 'http://example.org/path' -H 'Content-Type: application/binary' --dat
a-binary $'1234\r\n\x0100\x02\x03\x04\x05\'"!' --compressed |
| 19 Windows: curl "http://example.org/path" -H "Content-Type: application/binary" --
data-binary ^"^%^OS^%^ |
| 20 |
| 21 ^%^%^OS^%^%^ |
| 22 |
| 23 ^\^"^\^\^\^"'^$^&^!^" --compressed |
| 24 Unix: curl 'http://example.org/path' -H 'Content-Type: application/binary' --dat
a-binary $'%OS%\r\n%%OS%%\r\n"\\"\'$&!' --compressed |
| 25 Windows: curl "http://example.org/path" -H "Content-Type: application/binary" --
data-binary ^"^!^@^#^$^%^^^&*()_+~`1234567890-=^[^]^{^};':^\^",./^ |
| 26 |
| 27 ^<^>?^ |
| 28 |
| 29 qwer^ |
| 30 |
| 31 t^ |
| 32 |
| 33 ^ |
| 34 |
| 35 yuiopasdfghjklmnbvcxzQWERTYUIOPLKJHGFDSAZXCVBNM^" --compressed |
| 36 Unix: curl 'http://example.org/path' -H 'Content-Type: application/binary' --dat
a-binary $'!@#$%^&*()_+~`1234567890-=[]{};\':",./\r<>?\r\nqwer\nt\n\nyuiopasdfgh
jklmnbvcxzQWERTYUIOPLKJHGFDSAZXCVBNM' --compressed |
| 37 Windows: curl "http://example.org/path" -H "Content-Type: application/binary" --
data-binary "^^^^ÿ ^܀" --compressed |
| 38 Unix: curl 'http://example.org/path' -H 'Content-Type: application/binary' --dat
a-binary $'\x7f\x80\x90\xff\x09\u0700' --compressed |
| 39 Windows: curl "http://labs.ft.com/?querystring=^\[^\]^\{^\}" --compressed |
| 40 Unix: curl 'http://labs.ft.com/?querystring=\[\]\{\}' --compressed |
| 41 Windows: curl "http://example.org/path" -H "Content-Type: application/binary" --
data-binary "^%^PATH^%^$PATH" --compressed |
| 42 Unix: curl 'http://example.org/path' -H 'Content-Type: application/binary' --dat
a-binary '%PATH%$PATH' --compressed |
| 43 Windows: curl "http://example.org/path" --compressed |
| 44 Unix: curl 'http://example.org/path' --compressed |
| 45 |
OLD | NEW |