Skip to content

Commit 9c0f0f4

Browse files
committed
update shell fixtures
1 parent 5d1e386 commit 9c0f0f4

8 files changed

Lines changed: 24 additions & 23 deletions

File tree

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
curl --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'
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
curl --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
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
curl --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
Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
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
Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
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
Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
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'
Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
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'
Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
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'

0 commit comments

Comments
 (0)