File tree Expand file tree Collapse file tree
test/fixtures/output/shell Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11curl --request POST \
22 --url http://mockbin.com/har \
33 --header ' content-type: multipart/form-data; boundary=---011000010111000001101001' \
4- --data ' -----011000010111000001101001\r\nContent-Disposition: form-data; name=" foo"; filename="hello.txt"\r\nContent-Type: text/plain\r\n\r\nHello World\r\n-----011000010111000001101001-- '
4+ --form ' foo=Hello World'
Original file line number Diff line number Diff line change 11curl --request POST \
22 --url http://mockbin.com/har \
33 --header ' content-type: multipart/form-data; boundary=---011000010111000001101001' \
4- --data ' -----011000010111000001101001\r\nContent-Disposition: form-data; name=" foo"; filename=" hello.txt"\r\nContent-Type: text/plain\r\n\r\n\r\n-----011000010111000001101001-- '
4+ --form foo=@test/fixtures/files/ hello.txt
Original file line number Diff line number Diff line change 11curl --request POST \
22 --url http://mockbin.com/har \
33 --header ' content-type: multipart/form-data; boundary=---011000010111000001101001' \
4- --data ' -----011000010111000001101001\r\nContent-Disposition: form-data; name=" foo"\r\n\r\nbar\r\n-----011000010111000001101001-- '
4+ --form foo=bar
Original file line number Diff line number Diff line change 1- echo ' foo=bar&hello=world' | \
2- http POST http://mockbin.com/har \
3- content-type:application/x-www-form-urlencoded
1+ http --form POST http://mockbin.com/har \
2+ content-type:application/x-www-form-urlencoded \
3+ foo=bar \
4+ hello=world
Original file line number Diff line number Diff line change 1- echo foo=bar | \
2- http POST ' http://mockbin.com/har?foo=bar&foo=baz&baz=abc&key=value' \
1+ http --form POST ' http://mockbin.com/har?foo=bar&foo=baz&baz=abc&key=value' \
32 accept:application/json \
43 content-type:application/x-www-form-urlencoded \
5- cookie:' foo=bar; bar=baz'
4+ cookie:' foo=bar; bar=baz' \
5+ foo=bar
Original file line number Diff line number Diff line change 1- echo ' -----011000010111000001101001
2- Content-Disposition: form-data; name="foo"; filename="hello.txt"
3- Content-Type: text/plain
4-
5- Hello World
1+ echo ' -----011000010111000001101001
2+ Content-Disposition: form-data; name="foo"; filename="hello.txt"
3+ Content-Type: text/plain
4+
5+ Hello World
66-----011000010111000001101001--' | \
77 http POST http://mockbin.com/har \
88 content-type:' multipart/form-data; boundary=---011000010111000001101001'
Original file line number Diff line number Diff line change 1- echo ' -----011000010111000001101001
2- Content-Disposition: form-data; name="foo"; filename="hello.txt"
3- Content-Type: text/plain
4-
5-
1+ echo ' -----011000010111000001101001
2+ Content-Disposition: form-data; name="foo"; filename="hello.txt"
3+ Content-Type: text/plain
4+
5+
66-----011000010111000001101001--' | \
77 http POST http://mockbin.com/har \
88 content-type:' multipart/form-data; boundary=---011000010111000001101001'
Original file line number Diff line number Diff line change 1- echo ' -----011000010111000001101001
2- Content-Disposition: form-data; name="foo"
3-
4- bar
1+ echo ' -----011000010111000001101001
2+ Content-Disposition: form-data; name="foo"
3+
4+ bar
55-----011000010111000001101001--' | \
66 http POST http://mockbin.com/har \
77 content-type:' multipart/form-data; boundary=---011000010111000001101001'
You can’t perform that action at this time.
0 commit comments