mirror of
https://github.com/curlconverter/curlconverter.git
synced 2022-05-22 02:35:29 +03:00
convert to typescript (#368)
* compile with typescript * add types * rename tree-sitter import file * proofread README.md
This commit is contained in:
committed by
GitHub
parent
9c01335485
commit
f29c397882
6
test/fixtures/ansible/delete.yml
vendored
Normal file
6
test/fixtures/ansible/delete.yml
vendored
Normal file
@@ -0,0 +1,6 @@
|
||||
-
|
||||
name: 'http://www.url.com/page'
|
||||
uri:
|
||||
url: 'http://www.url.com/page'
|
||||
method: DELETE
|
||||
register: result
|
||||
8
test/fixtures/ansible/get_basic_auth.yml
vendored
Normal file
8
test/fixtures/ansible/get_basic_auth.yml
vendored
Normal file
@@ -0,0 +1,8 @@
|
||||
-
|
||||
name: 'https://api.test.com/'
|
||||
uri:
|
||||
url: 'https://api.test.com/'
|
||||
method: GET
|
||||
url_username: some_username
|
||||
url_password: some_password
|
||||
register: result
|
||||
7
test/fixtures/ansible/get_basic_auth_no_user.yml
vendored
Normal file
7
test/fixtures/ansible/get_basic_auth_no_user.yml
vendored
Normal file
@@ -0,0 +1,7 @@
|
||||
-
|
||||
name: 'https://api.test.com/'
|
||||
uri:
|
||||
url: 'https://api.test.com/'
|
||||
method: GET
|
||||
url_password: some_password
|
||||
register: result
|
||||
6
test/fixtures/ansible/get_complex_url_params.yml
vendored
Normal file
6
test/fixtures/ansible/get_complex_url_params.yml
vendored
Normal file
@@ -0,0 +1,6 @@
|
||||
-
|
||||
name: 'https://www.nomador.com/house-sitting/'
|
||||
uri:
|
||||
url: 'https://www.nomador.com/house-sitting/?page=1&available=&available=1&location=0&city%5Bid%5D=0&city%5Blocality%5D=&city%5Blocality_text%5D=&city%5Badministrative_area_level_2%5D=&city%5Badministrative_area_level_2_text%5D=&city%5Badministrative_area_level_1%5D=&city%5Badministrative_area_level_1_text%5D=&city%5Bcountry%5D=&city%5Bcountry_text%5D=&city%5Blatitude%5D=&city%5Blongitude%5D=&city%5Bzoom%5D=&city%5Bname%5D=®ion%5Bid%5D=0®ion%5Blocality%5D=®ion%5Blocality_text%5D=®ion%5Badministrative_area_level_2%5D=®ion%5Badministrative_area_level_2_text%5D=®ion%5Badministrative_area_level_1%5D=®ion%5Badministrative_area_level_1_text%5D=®ion%5Bcountry%5D=®ion%5Bcountry_text%5D=®ion%5Blatitude%5D=®ion%5Blongitude%5D=®ion%5Bzoom%5D=®ion%5Bname%5D=&country=&environment=&population=&period=0&date=2017-03-03&datestart=2017-03-03&dateend=2017-06-24&season=&duration=&isfd=&stopover='
|
||||
method: GET
|
||||
register: result
|
||||
7
test/fixtures/ansible/get_insecure_full.yml
vendored
Normal file
7
test/fixtures/ansible/get_insecure_full.yml
vendored
Normal file
@@ -0,0 +1,7 @@
|
||||
-
|
||||
name: 'https://example.com'
|
||||
uri:
|
||||
url: 'https://example.com'
|
||||
method: GET
|
||||
validate_certs: no
|
||||
register: result
|
||||
7
test/fixtures/ansible/get_insecure_k.yml
vendored
Normal file
7
test/fixtures/ansible/get_insecure_k.yml
vendored
Normal file
@@ -0,0 +1,7 @@
|
||||
-
|
||||
name: 'https://example.com'
|
||||
uri:
|
||||
url: 'https://example.com'
|
||||
method: GET
|
||||
validate_certs: no
|
||||
register: result
|
||||
7
test/fixtures/ansible/get_insecure_short.yml
vendored
Normal file
7
test/fixtures/ansible/get_insecure_short.yml
vendored
Normal file
@@ -0,0 +1,7 @@
|
||||
-
|
||||
name: 'https://www.site.com'
|
||||
uri:
|
||||
url: 'https://www.site.com'
|
||||
method: GET
|
||||
validate_certs: no
|
||||
register: result
|
||||
14
test/fixtures/ansible/get_with_browser_headers.yml
vendored
Normal file
14
test/fixtures/ansible/get_with_browser_headers.yml
vendored
Normal file
@@ -0,0 +1,14 @@
|
||||
-
|
||||
name: 'http://en.wikipedia.org/'
|
||||
uri:
|
||||
url: 'http://en.wikipedia.org/'
|
||||
method: GET
|
||||
headers:
|
||||
Accept-Encoding: 'gzip, deflate, sdch'
|
||||
Accept-Language: 'en-US,en;q=0.8'
|
||||
User-Agent: 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_10_1) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/39.0.2171.95 Safari/537.36'
|
||||
Accept: 'text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,*/*;q=0.8'
|
||||
Referer: 'http://www.wikipedia.org/'
|
||||
Cookie: 'GeoIP=US:Albuquerque:35.1241:-106.7675:v4; uls-previous-languages=%5B%22en%22%5D; mediaWiki.user.sessionId=VaHaeVW3m0ymvx9kacwshZIDkv8zgF9y; centralnotice_buckets_by_campaign=%7B%22C14_enUS_dsk_lw_FR%22%3A%7B%22val%22%3A%220%22%2C%22start%22%3A1412172000%2C%22end%22%3A1422576000%7D%2C%22C14_en5C_dec_dsk_FR%22%3A%7B%22val%22%3A3%2C%22start%22%3A1417514400%2C%22end%22%3A1425290400%7D%2C%22C14_en5C_bkup_dsk_FR%22%3A%7B%22val%22%3A1%2C%22start%22%3A1417428000%2C%22end%22%3A1425290400%7D%7D; centralnotice_bannercount_fr12=22; centralnotice_bannercount_fr12-wait=14'
|
||||
Connection: 'keep-alive'
|
||||
register: result
|
||||
8
test/fixtures/ansible/get_with_single_header.yml
vendored
Normal file
8
test/fixtures/ansible/get_with_single_header.yml
vendored
Normal file
@@ -0,0 +1,8 @@
|
||||
-
|
||||
name: 'http://example.com/'
|
||||
uri:
|
||||
url: 'http://example.com/'
|
||||
method: GET
|
||||
headers:
|
||||
foo: 'bar'
|
||||
register: result
|
||||
14
test/fixtures/ansible/patch.yml
vendored
Normal file
14
test/fixtures/ansible/patch.yml
vendored
Normal file
@@ -0,0 +1,14 @@
|
||||
-
|
||||
name: 'https://ci.example.com/go/api/agents/adb9540a-b954-4571-9d9b-2f330739d4da'
|
||||
uri:
|
||||
url: 'https://ci.example.com/go/api/agents/adb9540a-b954-4571-9d9b-2f330739d4da'
|
||||
method: PATCH
|
||||
body:
|
||||
{"hostname":"agent02.example.com","agent_config_state":"Enabled","resources":["Java","Linux"],"environments":["Dev"]}
|
||||
body_format: json
|
||||
headers:
|
||||
Accept: 'application/vnd.go.cd.v4+json'
|
||||
Content-Type: 'application/json'
|
||||
url_username: username
|
||||
url_password: password
|
||||
register: result
|
||||
8
test/fixtures/ansible/post_empty.yml
vendored
Normal file
8
test/fixtures/ansible/post_empty.yml
vendored
Normal file
@@ -0,0 +1,8 @@
|
||||
-
|
||||
name: 'http://localhost:28139'
|
||||
uri:
|
||||
url: 'http://localhost:28139'
|
||||
method: POST
|
||||
headers:
|
||||
Content-Type: 'application/x-www-form-urlencoded'
|
||||
register: result
|
||||
13
test/fixtures/ansible/post_json_multiple_headers.yml
vendored
Normal file
13
test/fixtures/ansible/post_json_multiple_headers.yml
vendored
Normal file
@@ -0,0 +1,13 @@
|
||||
-
|
||||
name: 'https://0.0.0.0/rest/login-sessions'
|
||||
uri:
|
||||
url: 'https://0.0.0.0/rest/login-sessions'
|
||||
method: POST
|
||||
body:
|
||||
{"userName":"username123","password":"password123","authLoginDomain":"local"}
|
||||
body_format: json
|
||||
headers:
|
||||
Content-Type: 'application/json'
|
||||
X-API-Version: '200'
|
||||
validate_certs: no
|
||||
register: result
|
||||
11
test/fixtures/ansible/post_number.yml
vendored
Normal file
11
test/fixtures/ansible/post_number.yml
vendored
Normal file
@@ -0,0 +1,11 @@
|
||||
-
|
||||
name: 'http://a.com'
|
||||
uri:
|
||||
url: 'http://a.com'
|
||||
method: POST
|
||||
body:
|
||||
123
|
||||
body_format: json
|
||||
headers:
|
||||
Content-Type: 'application/x-www-form-urlencoded'
|
||||
register: result
|
||||
11
test/fixtures/ansible/post_with_data_raw.yml
vendored
Normal file
11
test/fixtures/ansible/post_with_data_raw.yml
vendored
Normal file
@@ -0,0 +1,11 @@
|
||||
-
|
||||
name: 'http://example.com/post'
|
||||
uri:
|
||||
url: 'http://example.com/post'
|
||||
method: POST
|
||||
body:
|
||||
"msg1=wow&msg2=such&msg3=@rawmsg"
|
||||
body_format: json
|
||||
headers:
|
||||
Content-Type: 'application/x-www-form-urlencoded'
|
||||
register: result
|
||||
19
test/fixtures/ansible/post_with_urlencoded_data.yml
vendored
Normal file
19
test/fixtures/ansible/post_with_urlencoded_data.yml
vendored
Normal file
@@ -0,0 +1,19 @@
|
||||
-
|
||||
name: 'http://fiddle.jshell.net/echo/html/'
|
||||
uri:
|
||||
url: 'http://fiddle.jshell.net/echo/html/'
|
||||
method: POST
|
||||
body:
|
||||
"msg1=wow&msg2=such"
|
||||
body_format: json
|
||||
headers:
|
||||
Origin: 'http://fiddle.jshell.net'
|
||||
Accept-Encoding: 'gzip, deflate'
|
||||
Accept-Language: 'en-US,en;q=0.8'
|
||||
User-Agent: 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_10_1) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/39.0.2171.95 Safari/537.36'
|
||||
Content-Type: 'application/x-www-form-urlencoded; charset=UTF-8'
|
||||
Accept: '*/*'
|
||||
Referer: 'http://fiddle.jshell.net/_display/'
|
||||
X-Requested-With: 'XMLHttpRequest'
|
||||
Connection: 'keep-alive'
|
||||
register: result
|
||||
11
test/fixtures/ansible/post_xpost.yml
vendored
Normal file
11
test/fixtures/ansible/post_xpost.yml
vendored
Normal file
@@ -0,0 +1,11 @@
|
||||
-
|
||||
name: 'http://us.jooble.org/api/xxxxxxxxxxxxxxxx'
|
||||
uri:
|
||||
url: 'http://us.jooble.org/api/xxxxxxxxxxxxxxxx'
|
||||
method: POST
|
||||
body:
|
||||
{"keywords":"php","page":1,"searchMode":1}
|
||||
body_format: json
|
||||
headers:
|
||||
Content-Type: 'application/x-www-form-urlencoded'
|
||||
register: result
|
||||
13
test/fixtures/ansible/put_basic_auth_json_data.yml
vendored
Normal file
13
test/fixtures/ansible/put_basic_auth_json_data.yml
vendored
Normal file
@@ -0,0 +1,13 @@
|
||||
-
|
||||
name: 'http://localhost:5984/test/_security'
|
||||
uri:
|
||||
url: 'http://localhost:5984/test/_security'
|
||||
method: PUT
|
||||
body:
|
||||
{"admins":{"names":[],"roles":[]},"readers":{"names":["joe"],"roles":[]}}
|
||||
body_format: json
|
||||
headers:
|
||||
Content-Type: 'application/x-www-form-urlencoded'
|
||||
url_username: admin
|
||||
url_password: 123
|
||||
register: result
|
||||
11
test/fixtures/ansible/put_xput.yml
vendored
Normal file
11
test/fixtures/ansible/put_xput.yml
vendored
Normal file
@@ -0,0 +1,11 @@
|
||||
-
|
||||
name: 'http://localhost:9200/twitter/_mapping/user?pretty'
|
||||
uri:
|
||||
url: 'http://localhost:9200/twitter/_mapping/user?pretty'
|
||||
method: PUT
|
||||
body:
|
||||
{"properties":{"email":{"type":"keyword"}}}
|
||||
body_format: json
|
||||
headers:
|
||||
Content-Type: 'application/json'
|
||||
register: result
|
||||
6
test/fixtures/ansible/strange_http_method.yml
vendored
Normal file
6
test/fixtures/ansible/strange_http_method.yml
vendored
Normal file
@@ -0,0 +1,6 @@
|
||||
-
|
||||
name: 'example.com'
|
||||
uri:
|
||||
url: 'example.com'
|
||||
method: WHAT
|
||||
register: result
|
||||
2
test/fixtures/curl_commands/bash_redirect.sh
vendored
Normal file
2
test/fixtures/curl_commands/bash_redirect.sh
vendored
Normal file
@@ -0,0 +1,2 @@
|
||||
# https://github.com/curlconverter/curlconverter/issues/316
|
||||
curl -H "X-Requested-With: curl" -H "Content-Type: text/xml" -u "USER:PASS" -X "POST" --data-binary @- "https://example.com/api/2.0/fo/auth/unix/?action=create&title=UnixRecord&username=root&password=abc123&ips=10.10.10.10" < add_params.xml
|
||||
7
test/fixtures/curl_commands/bash_redirect_heredoc.sh
vendored
Normal file
7
test/fixtures/curl_commands/bash_redirect_heredoc.sh
vendored
Normal file
@@ -0,0 +1,7 @@
|
||||
# https://github.com/curlconverter/curlconverter/issues/328
|
||||
curl -X POST https://plex.tv/api/servers/00000000000/shared_servers/ -H "'Accept': 'application/json'" -H "Authorization: Bearer 000000000000000-0000" -H "Content-Type: application/json" --data-binary @- <<DATA
|
||||
{"server_id": "00000000000",
|
||||
"shared_server": {"library_section_ids": 00000000000,
|
||||
"invited_id": 00000000000}
|
||||
}
|
||||
DATA
|
||||
1
test/fixtures/curl_commands/bash_redirect_herestring.sh
vendored
Normal file
1
test/fixtures/curl_commands/bash_redirect_herestring.sh
vendored
Normal file
@@ -0,0 +1 @@
|
||||
curl -X POST https://plex.tv/api/servers/00000000000/shared_servers/ -H "'Accept': 'application/json'" -H "Authorization: Bearer 000000000000000-0000" -H "Content-Type: application/json" --data-binary @- <<< $MYVARIABLE
|
||||
1
test/fixtures/curl_commands/delete.sh
vendored
Normal file
1
test/fixtures/curl_commands/delete.sh
vendored
Normal file
@@ -0,0 +1 @@
|
||||
curl -X "DELETE" "http://www.url.com/page"
|
||||
1
test/fixtures/curl_commands/delete_content_type.sh
vendored
Normal file
1
test/fixtures/curl_commands/delete_content_type.sh
vendored
Normal file
@@ -0,0 +1 @@
|
||||
curl --data '{}' -H 'Content-Type: application/json' example.com
|
||||
1
test/fixtures/curl_commands/get_basic_auth.sh
vendored
Normal file
1
test/fixtures/curl_commands/get_basic_auth.sh
vendored
Normal file
@@ -0,0 +1 @@
|
||||
curl "https://api.test.com/" -u "some_username:some_password"
|
||||
1
test/fixtures/curl_commands/get_basic_auth_no_user.sh
vendored
Normal file
1
test/fixtures/curl_commands/get_basic_auth_no_user.sh
vendored
Normal file
@@ -0,0 +1 @@
|
||||
curl "https://api.test.com/" -u ":some_password"
|
||||
1
test/fixtures/curl_commands/get_cert_cacert.sh
vendored
Normal file
1
test/fixtures/curl_commands/get_cert_cacert.sh
vendored
Normal file
@@ -0,0 +1 @@
|
||||
curl --cert /path/to/the/cert --cacert /path/to/ca-bundle.crt https://example.com
|
||||
1
test/fixtures/curl_commands/get_cert_key_capath.sh
vendored
Normal file
1
test/fixtures/curl_commands/get_cert_key_capath.sh
vendored
Normal file
@@ -0,0 +1 @@
|
||||
curl --cert /path/to/cert --key /path/to/key --capath /path/to/ca https://example.com
|
||||
1
test/fixtures/curl_commands/get_charles_syntax.sh
vendored
Normal file
1
test/fixtures/curl_commands/get_charles_syntax.sh
vendored
Normal file
@@ -0,0 +1 @@
|
||||
curl -H "Host: api.ipify.org" -H "Accept: */*" -H "User-Agent: GiftTalk/2.7.2 (iPhone; iOS 9.0.2; Scale/3.00)" -H "Accept-Language: en-CN;q=1, zh-Hans-CN;q=0.9" --compressed "http://api.ipify.org/?format=json&"
|
||||
1
test/fixtures/curl_commands/get_complex_url_params.sh
vendored
Normal file
1
test/fixtures/curl_commands/get_complex_url_params.sh
vendored
Normal file
@@ -0,0 +1 @@
|
||||
curl 'https://www.nomador.com/house-sitting/?page=1&available=&available=1&location=0&city%5Bid%5D=0&city%5Blocality%5D=&city%5Blocality_text%5D=&city%5Badministrative_area_level_2%5D=&city%5Badministrative_area_level_2_text%5D=&city%5Badministrative_area_level_1%5D=&city%5Badministrative_area_level_1_text%5D=&city%5Bcountry%5D=&city%5Bcountry_text%5D=&city%5Blatitude%5D=&city%5Blongitude%5D=&city%5Bzoom%5D=&city%5Bname%5D=®ion%5Bid%5D=0®ion%5Blocality%5D=®ion%5Blocality_text%5D=®ion%5Badministrative_area_level_2%5D=®ion%5Badministrative_area_level_2_text%5D=®ion%5Badministrative_area_level_1%5D=®ion%5Badministrative_area_level_1_text%5D=®ion%5Bcountry%5D=®ion%5Bcountry_text%5D=®ion%5Blatitude%5D=®ion%5Blongitude%5D=®ion%5Bzoom%5D=®ion%5Bname%5D=&country=&environment=&population=&period=0&date=2017-03-03&datestart=2017-03-03&dateend=2017-06-24&season=&duration=&isfd=&stopover='
|
||||
1
test/fixtures/curl_commands/get_cookie_with_empty_value.sh
vendored
Normal file
1
test/fixtures/curl_commands/get_cookie_with_empty_value.sh
vendored
Normal file
@@ -0,0 +1 @@
|
||||
curl -X GET "https://httpbin.org/cookies" -H "accept: application/json" -H 'Cookie: mysamplecookie=someValue; emptycookie=; otherCookie=2'
|
||||
1
test/fixtures/curl_commands/get_digest_auth.sh
vendored
Normal file
1
test/fixtures/curl_commands/get_digest_auth.sh
vendored
Normal file
@@ -0,0 +1 @@
|
||||
curl "http://localhost:28139/" -u "some_username:some_password" --digest
|
||||
1
test/fixtures/curl_commands/get_follow_location.sh
vendored
Normal file
1
test/fixtures/curl_commands/get_follow_location.sh
vendored
Normal file
@@ -0,0 +1 @@
|
||||
curl 'http://example.net' -L
|
||||
1
test/fixtures/curl_commands/get_follow_redirect.sh
vendored
Normal file
1
test/fixtures/curl_commands/get_follow_redirect.sh
vendored
Normal file
@@ -0,0 +1 @@
|
||||
curl -L http://www.google.com
|
||||
1
test/fixtures/curl_commands/get_http2_warning.sh
vendored
Normal file
1
test/fixtures/curl_commands/get_http2_warning.sh
vendored
Normal file
@@ -0,0 +1 @@
|
||||
curl --http2 example.com
|
||||
1
test/fixtures/curl_commands/get_insecure_basic_auth.sh
vendored
Normal file
1
test/fixtures/curl_commands/get_insecure_basic_auth.sh
vendored
Normal file
@@ -0,0 +1 @@
|
||||
curl -k "https://api.test.com/" -u "some_username:some_password"
|
||||
1
test/fixtures/curl_commands/get_insecure_full.sh
vendored
Normal file
1
test/fixtures/curl_commands/get_insecure_full.sh
vendored
Normal file
@@ -0,0 +1 @@
|
||||
curl --insecure -X GET https://example.com
|
||||
1
test/fixtures/curl_commands/get_insecure_k.sh
vendored
Normal file
1
test/fixtures/curl_commands/get_insecure_k.sh
vendored
Normal file
@@ -0,0 +1 @@
|
||||
curl -k -X GET https://example.com
|
||||
1
test/fixtures/curl_commands/get_insecure_short.sh
vendored
Normal file
1
test/fixtures/curl_commands/get_insecure_short.sh
vendored
Normal file
@@ -0,0 +1 @@
|
||||
curl -k 'https://www.site.com'
|
||||
1
test/fixtures/curl_commands/get_long_form_header.sh
vendored
Normal file
1
test/fixtures/curl_commands/get_long_form_header.sh
vendored
Normal file
@@ -0,0 +1 @@
|
||||
curl -X GET --header 'Accept: application/json' --header 'user-token: 75d7ce4350c7d6239347bf23d3a3e668' 'http://localhost:8080/api/retail/books/list'
|
||||
1
test/fixtures/curl_commands/get_max_time.sh
vendored
Normal file
1
test/fixtures/curl_commands/get_max_time.sh
vendored
Normal file
@@ -0,0 +1 @@
|
||||
curl 'http://example.com' -m 20
|
||||
1
test/fixtures/curl_commands/get_proxy.sh
vendored
Normal file
1
test/fixtures/curl_commands/get_proxy.sh
vendored
Normal file
@@ -0,0 +1 @@
|
||||
curl 'http://localhost:9000' -x 'http://localhost:8080'
|
||||
1
test/fixtures/curl_commands/get_proxy_with_auth.sh
vendored
Normal file
1
test/fixtures/curl_commands/get_proxy_with_auth.sh
vendored
Normal file
@@ -0,0 +1 @@
|
||||
curl 'http://localhost:9000' --proxy 'http://localhost:8080' -U 'anonymous:anonymous'
|
||||
1
test/fixtures/curl_commands/get_referer.sh
vendored
Normal file
1
test/fixtures/curl_commands/get_referer.sh
vendored
Normal file
@@ -0,0 +1 @@
|
||||
curl https://website.com/api -G -H "X-Requested-With: XMLHttpRequest" -e "https://website.com" -A "SimCity"
|
||||
1
test/fixtures/curl_commands/get_silent.sh
vendored
Normal file
1
test/fixtures/curl_commands/get_silent.sh
vendored
Normal file
@@ -0,0 +1 @@
|
||||
curl --silent 'www.google.com'
|
||||
1
test/fixtures/curl_commands/get_url_starting_with_http.sh
vendored
Normal file
1
test/fixtures/curl_commands/get_url_starting_with_http.sh
vendored
Normal file
@@ -0,0 +1 @@
|
||||
curl httpbin.org/test
|
||||
1
test/fixtures/curl_commands/get_user_agent.sh
vendored
Normal file
1
test/fixtures/curl_commands/get_user_agent.sh
vendored
Normal file
@@ -0,0 +1 @@
|
||||
curl --trace-ascii log2.txt --user-agent "Mozilla Android6.1" -i --header "x-msisdn:XXXXXXXXXXXXX" -L "http://205.147.98.6/vc/moviesmagic?p=5&pub=testmovie&tkn=817263812"
|
||||
1
test/fixtures/curl_commands/get_user_agent_alias.sh
vendored
Normal file
1
test/fixtures/curl_commands/get_user_agent_alias.sh
vendored
Normal file
@@ -0,0 +1 @@
|
||||
curl --trace-ascii log2.txt --user-agent "Mozilla Android6.1" -i --header "x-msisdn:XXXXXXXXXXXXX" -L "http://205.147.98.6/vc/moviesmagic?p=5&pub=testmovie&tkn=817263812"
|
||||
1
test/fixtures/curl_commands/get_with_all_numerical_data.sh
vendored
Normal file
1
test/fixtures/curl_commands/get_with_all_numerical_data.sh
vendored
Normal file
@@ -0,0 +1 @@
|
||||
curl -X POST --header 'Content-Type: application/json' --header 'Accept: application/json' -d '18233982904' 'http://198.30.191.00:8309/CurlToNode'
|
||||
1
test/fixtures/curl_commands/get_with_browser_headers.sh
vendored
Normal file
1
test/fixtures/curl_commands/get_with_browser_headers.sh
vendored
Normal file
@@ -0,0 +1 @@
|
||||
curl 'http://en.wikipedia.org/' -H 'Accept-Encoding: gzip, deflate, sdch' -H 'Accept-Language: en-US,en;q=0.8' -H 'User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_10_1) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/39.0.2171.95 Safari/537.36' -H 'Accept: text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,*/*;q=0.8' -H 'Referer: http://www.wikipedia.org/' -H 'Cookie: GeoIP=US:Albuquerque:35.1241:-106.7675:v4; uls-previous-languages=%5B%22en%22%5D; mediaWiki.user.sessionId=VaHaeVW3m0ymvx9kacwshZIDkv8zgF9y; centralnotice_buckets_by_campaign=%7B%22C14_enUS_dsk_lw_FR%22%3A%7B%22val%22%3A%220%22%2C%22start%22%3A1412172000%2C%22end%22%3A1422576000%7D%2C%22C14_en5C_dec_dsk_FR%22%3A%7B%22val%22%3A3%2C%22start%22%3A1417514400%2C%22end%22%3A1425290400%7D%2C%22C14_en5C_bkup_dsk_FR%22%3A%7B%22val%22%3A1%2C%22start%22%3A1417428000%2C%22end%22%3A1425290400%7D%7D; centralnotice_bannercount_fr12=22; centralnotice_bannercount_fr12-wait=14' -H 'Connection: keep-alive' --compressed
|
||||
1
test/fixtures/curl_commands/get_with_cookie_in_headers.sh
vendored
Normal file
1
test/fixtures/curl_commands/get_with_cookie_in_headers.sh
vendored
Normal file
@@ -0,0 +1 @@
|
||||
curl 'https://httpbin.org/cookies' -H 'Pragma: no-cache' -H 'Accept-Encoding: gzip, deflate, br' -H 'Accept-Language: en-US,en;q=0.9' -H 'User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_3) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/72.0.3626.119 Safari/537.36' -H 'accept: application/json' -H 'Referer: https://httpbin.org/' -H 'Cookie: authCookie=123' -H 'Connection: keep-alive' -H 'Cache-Control: no-cache' -H 'Sec-Metadata: destination=empty, site=same-origin' --compressed
|
||||
1
test/fixtures/curl_commands/get_with_data.sh
vendored
Normal file
1
test/fixtures/curl_commands/get_with_data.sh
vendored
Normal file
@@ -0,0 +1 @@
|
||||
curl -v -H 'X-Api-Key:123456789' 'https://synthetics.newrelic.com/synthetics/api/v3/monitors?test=2' -G -d 'limit=100' -d 'w=4'
|
||||
4
test/fixtures/curl_commands/get_with_data2.sh
vendored
Normal file
4
test/fixtures/curl_commands/get_with_data2.sh
vendored
Normal file
@@ -0,0 +1,4 @@
|
||||
curl -X PUT 'https://api.newrelic.com/v2/alerts_policy_channels.json' \
|
||||
-H 'X-Api-Key:{admin_api_key}' -i \
|
||||
-H 'Content-Type: application/json' \
|
||||
-G -d 'policy_id=policy_id&channel_ids=channel_id'
|
||||
1
test/fixtures/curl_commands/get_with_env_var.sh
vendored
Normal file
1
test/fixtures/curl_commands/get_with_env_var.sh
vendored
Normal file
@@ -0,0 +1 @@
|
||||
curl -X GET -H "Content-Type: application/json" -H "Authorization: Bearer $DO_API_TOKEN" "https://api.digitalocean.com/v2/images?type=distribution"
|
||||
6
test/fixtures/curl_commands/get_with_form.sh
vendored
Normal file
6
test/fixtures/curl_commands/get_with_form.sh
vendored
Normal file
@@ -0,0 +1,6 @@
|
||||
curl -s --user 'test' \
|
||||
https://api.net/v3 \
|
||||
-F from='test@tester.com' \
|
||||
-F to='devs@tester.net' \
|
||||
-F subject='Hello' \
|
||||
-F text='Testing the converter!'
|
||||
1
test/fixtures/curl_commands/get_with_header_lowercase_cookie.sh
vendored
Normal file
1
test/fixtures/curl_commands/get_with_header_lowercase_cookie.sh
vendored
Normal file
@@ -0,0 +1 @@
|
||||
curl -v -H 'cookie: secure_user_id=InNlY3VyZTEwNjI3Ig%3D%3D--3b5df49345735791f2b80eddafb630cdcba76a1d; adaptive_image=1440; has_js=1; ccShowCookieIcon=no; _web_session=Y2h...e5' http://www.url.com/page
|
||||
1
test/fixtures/curl_commands/get_with_header_without_value.sh
vendored
Normal file
1
test/fixtures/curl_commands/get_with_header_without_value.sh
vendored
Normal file
@@ -0,0 +1 @@
|
||||
curl --header "Content-Type: text/xml;charset=UTF-8" --header "getWorkOrderCancel;" postman-echo.com/get
|
||||
1
test/fixtures/curl_commands/get_with_single_header.sh
vendored
Normal file
1
test/fixtures/curl_commands/get_with_single_header.sh
vendored
Normal file
@@ -0,0 +1 @@
|
||||
curl http://example.com/ -H 'foo: bar'
|
||||
1
test/fixtures/curl_commands/get_without_headers.sh
vendored
Normal file
1
test/fixtures/curl_commands/get_without_headers.sh
vendored
Normal file
@@ -0,0 +1 @@
|
||||
curl http://indeed.com
|
||||
1
test/fixtures/curl_commands/head.sh
vendored
Normal file
1
test/fixtures/curl_commands/head.sh
vendored
Normal file
@@ -0,0 +1 @@
|
||||
curl --head http://www.url.com/page
|
||||
1
test/fixtures/curl_commands/head_with_I_option.sh
vendored
Normal file
1
test/fixtures/curl_commands/head_with_I_option.sh
vendored
Normal file
@@ -0,0 +1 @@
|
||||
curl -I http://www.url.com/page
|
||||
1
test/fixtures/curl_commands/head_without_http.sh
vendored
Normal file
1
test/fixtures/curl_commands/head_without_http.sh
vendored
Normal file
@@ -0,0 +1 @@
|
||||
curl --head url.com/page
|
||||
1
test/fixtures/curl_commands/j_data_priority_than_f.sh
vendored
Normal file
1
test/fixtures/curl_commands/j_data_priority_than_f.sh
vendored
Normal file
@@ -0,0 +1 @@
|
||||
curl http://httpbin.org/post -d data1=data1 -d data2=data2 -d data3=data3 -F file1=./fixtures/curl_commands/delete.sh
|
||||
1
test/fixtures/curl_commands/j_patch_array.sh
vendored
Normal file
1
test/fixtures/curl_commands/j_patch_array.sh
vendored
Normal file
@@ -0,0 +1 @@
|
||||
curl -XPATCH http://httpbin.org/patch -d item[]=1 -d item[]=2 -d item[]=3
|
||||
1
test/fixtures/curl_commands/j_patch_file_only.sh
vendored
Normal file
1
test/fixtures/curl_commands/j_patch_file_only.sh
vendored
Normal file
@@ -0,0 +1 @@
|
||||
curl -XPATCH http://httpbin.org/patch -F file1=@./fixtures/curl_commands/delete.sh
|
||||
1
test/fixtures/curl_commands/j_patch_file_with_data.sh
vendored
Normal file
1
test/fixtures/curl_commands/j_patch_file_with_data.sh
vendored
Normal file
@@ -0,0 +1 @@
|
||||
curl -XPATCH http://httpbin.org/patch -F file1=@./fixtures/curl_commands/delete.sh -F form1=form+data+1 -F form2=form_data_2
|
||||
1
test/fixtures/curl_commands/j_post_data_wo_verb.sh
vendored
Normal file
1
test/fixtures/curl_commands/j_post_data_wo_verb.sh
vendored
Normal file
@@ -0,0 +1 @@
|
||||
curl http://httpbin.org/post -d data1=data1 -d data2=data2 -d data3=data3
|
||||
1
test/fixtures/curl_commands/j_post_form_f.sh
vendored
Normal file
1
test/fixtures/curl_commands/j_post_form_f.sh
vendored
Normal file
@@ -0,0 +1 @@
|
||||
curl -F d1=data1 -F d2=data http://httpbin.org/post
|
||||
4
test/fixtures/curl_commands/multiline_post_with_data.sh
vendored
Normal file
4
test/fixtures/curl_commands/multiline_post_with_data.sh
vendored
Normal file
@@ -0,0 +1,4 @@
|
||||
curl -X GET 'http://fiddle.jshell.net/echo/html/' \
|
||||
-H 'Origin: http://fiddle.jshell.net' \
|
||||
-d msg1="value1" \
|
||||
-d msg2="value2"
|
||||
1
test/fixtures/curl_commands/multipart_post.sh
vendored
Normal file
1
test/fixtures/curl_commands/multipart_post.sh
vendored
Normal file
@@ -0,0 +1 @@
|
||||
curl https://upload.box.com/api/2.0/files/content -H "Authorization: Bearer ACCESS_TOKEN" -X POST -F attributes='{"name":"tigers.jpeg", "parent":{"id":"11446498"}}' -F file=@myfile.jpg
|
||||
6
test/fixtures/curl_commands/multipart_with_headers.sh
vendored
Normal file
6
test/fixtures/curl_commands/multipart_with_headers.sh
vendored
Normal file
@@ -0,0 +1,6 @@
|
||||
curl https://upload.box.com/api/2.0/files/content \
|
||||
-H "Authorization: Bearer ACCESS_TOKEN" \
|
||||
-X POST \
|
||||
-H 'X-Nice: Header' \
|
||||
-F attributes='{"name":"tigers.jpeg", "parent":{"id":"11446498"}}' \
|
||||
-F file=@myfile.jpg
|
||||
1
test/fixtures/curl_commands/multiple_d_post.sh
vendored
Normal file
1
test/fixtures/curl_commands/multiple_d_post.sh
vendored
Normal file
@@ -0,0 +1 @@
|
||||
curl -s 'https://cmdb.litop.local/webservices/rest.php' -d 'version=1.2' -d "auth_user=fdgxf" -d "auth_pwd=oxfdscds" -d 'json_data={ "operation": "core/get", "class": "Software", "key": "key" }'
|
||||
1
test/fixtures/curl_commands/options.sh
vendored
Normal file
1
test/fixtures/curl_commands/options.sh
vendored
Normal file
@@ -0,0 +1 @@
|
||||
curl "https://layla.amazon.de/api/tunein/queue-and-play?deviceSerialNumber=xxx^&deviceType=xxx^&guideId=s56876^&contentType=station^&callSign=^&mediaOwnerCustomerId=xxx" -X OPTIONS -H "Pragma: no-cache" -H "Access-Control-Request-Method: POST" -H "Origin: https://alexa.amazon.de" -H "Accept-Encoding: gzip, deflate, br" -H "Accept-Language: de-DE,de;q=0.8,en-US;q=0.6,en;q=0.4" -H "User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/61.0.3163.100 Safari/537.36" -H "Accept: */*" -H "Cache-Control: no-cache" -H "Referer: https://alexa.amazon.de/spa/index.html" -H "Connection: keep-alive" -H "DNT: 1" -H "Access-Control-Request-Headers: content-type,csrf" --compressed
|
||||
12
test/fixtures/curl_commands/patch.sh
vendored
Normal file
12
test/fixtures/curl_commands/patch.sh
vendored
Normal file
@@ -0,0 +1,12 @@
|
||||
# https://github.com/NickCarneiro/curlconverter/issues/68
|
||||
curl 'https://ci.example.com/go/api/agents/adb9540a-b954-4571-9d9b-2f330739d4da' \
|
||||
-u 'username:password' \
|
||||
-H 'Accept: application/vnd.go.cd.v4+json' \
|
||||
-H 'Content-Type: application/json' \
|
||||
-X PATCH \
|
||||
-d '{
|
||||
"hostname": "agent02.example.com",
|
||||
"agent_config_state": "Enabled",
|
||||
"resources": ["Java","Linux"],
|
||||
"environments": ["Dev"]
|
||||
}'
|
||||
1
test/fixtures/curl_commands/post_basic_auth_url_encoded_data.sh
vendored
Normal file
1
test/fixtures/curl_commands/post_basic_auth_url_encoded_data.sh
vendored
Normal file
@@ -0,0 +1 @@
|
||||
curl -X POST -d "grant_type=client_credentials" -u "foo:bar" http://localhost/api/oauth/token/
|
||||
1
test/fixtures/curl_commands/post_binary_file.sh
vendored
Normal file
1
test/fixtures/curl_commands/post_binary_file.sh
vendored
Normal file
@@ -0,0 +1 @@
|
||||
curl -i -X POST --data-binary @./sample.sparql -H "Content-type: application/sparql-query" -H "Accept: application/sparql-results+json" http://lodstories.isi.edu:3030/american-art/query
|
||||
1
test/fixtures/curl_commands/post_data_binary_with_equals.sh
vendored
Normal file
1
test/fixtures/curl_commands/post_data_binary_with_equals.sh
vendored
Normal file
@@ -0,0 +1 @@
|
||||
curl 'https://localhost/api/service.svc?action=CreateItem&ID=-37&AC=1' -H 'Cookie: X-BackEndCookie=S-1-5-21-1234556-56678-12345-2345=alphanumericstring12345/anotheralphanumericstring12345/scsiAdf/P; ClientId=LoremIupsum; PrivateComputer=true; PBack=0; cadata=bx88rrCBehITlBWSozO2l2hlFGu//JjT1/k6dewX5shV32jANUZSMU6GR+M25B6YpBODEgXzxfIHDnvxNC6SJoaE/d8RWX3uDnbkd+m91jNhMXNSYIRYTJHVFdPG06AE; cadataTTL=NfDhBViTJMUdC+ir+6BYvg==; cadataKey=qUY+OLTD9V14CFK6/CUPyrJWMxl1FFqZFjB8/qcS0/q55eqGvP9bWvX+XuSYVv3hIGAn9QNPhIDK6NP9LwCBdu25f2BUFDUWJruGO8MW02izSWzRUnni00xWQq3Y3nNKvpvO+OIR641BPHVZ0+lzCw2Wt8uzEnryCWAjlleozF/XWjpTN4/AaTmcIjEZUDN+fo4494rD0mADtEHv2gmd5mhLe+iyii/L9nAB3UuiJomwbRbKgy22Tj8cyavmLC4ZaViqW9E102NOLU4FYLgdZVET+mbdg==; cadataIV=bTM88YL1zmz7FsBEB0y3nI2SrdSTy+KLxCpx2FRfIZYFo2spN1IHQMSCT76OXrg79sVPhyqXk+N9rOj6M9KsQl4KqMNVBcoXgp24POpgoTwd4FBmKtAYbd9SDErna3jrMO168ML9PDG18K3CnBf6YG1tsIs0gXOEP9LzHVmUPF7KCKqUFiOiZGWuwmPhl85eo77BbEpVN2JkPnzuQWn6tC0cY4f2cJDlr3Z23SrAUVwwXmgRg2DXfOF5MIEkpwYiiI6sABCD9rsSnE6zTXlvZg33hjiD/ywUV1ZWjI2M/4zBixa4s150+dOnMmvtEFs/nOMnvMJui4PEDlTA==; cadataSig=WL3hB+av7sO3bzjL+Efe5b4exnvQxSInH3U5jDvfnPcttSp0XUF3y/NB573C0CTBYuOH/40smFssXlrKhT9tG2ITivdSIIamOmarmC8XwFOv9qQIFMHofcO/jjRDMqF0qRk7WBAC2FgBQrf2Tvq7wk5IX/JHn6zhlgKALAAqH9L9JNC244etnjj9YNaMDYEHV2M2jVTu3FsELqw1rSSqp0hEBlh+aFBvYCBg5hS1mVI76ZCHZVa0OUejiH2yiZyJIKHUI+Sv0rpU3iiQNtIFmGEdwhoo/rga4s4Dc2UsJLQ8c0yGlZgflYs+7Q5gPr74/mTUin60ej/w3M0roUl3FQ==; UC=d8be544621964f3c9865b3ee872fd432; AppcacheVer=15.0.1236.3:en-usbase; X-OWA-CANARY=VOXQP6xtGkiNnv7E4rFt8TrmclqVFtQI4IJqZflrR7Wz9AMPkMsFoyAlquw1YGsTUxIkVouAcvk.' -H 'Origin: https://nih.mail.edu.fr' -H 'Accept-Encoding: gzip, deflate, br' -H 'X-EWS-TargetVersion: 2.5' -H 'Accept-Language: en-US,en;q=0.8' -H 'User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/54.0.2840.99 Safari/537.36' -H 'Action: CreateItem' -H 'X-Requested-With: XMLHttpRequest' -H 'Connection: keep-alive' -H 'X-OWA-CANARY: VOXQP6xtGkiNnv7E4rFt8TrmclqVFtQI4IJqZflrR7Wz9AMPkMsFoyAlquw1YGsTUxIkVouAcvk.' -H 'X-OWA-ActionName: CreateMessageForComposeSend' -H 'X-OWA-ActionId: -37' -H 'X-OWA-ServiceUnavailableOnTransientError: true' -H 'Content-Type: application/json; charset=UTF-8' -H 'Accept: */*' -H 'Referer: https://localhost/api/' -H 'X-OWA-ClientBuildVersion: 15.0.1236.3' -H 'X-OWA-CorrelationId: 2f11f8fb-f6c6-43a5-881d-8a1b242a4e70_148023102251337' -H 'DNT: 1' -H 'X-OWA-ClientBegin: 2016-11-27T07:17:02.513' -H 'X-OWA-Attempt: 1' --data-binary '{"__type":"CreateItemJsonRequest:#Exchange","Header":{"__type":"JsonRequestHeaders:#Exchange","RequestServerVersion":"Exchange2013","TimeZoneContext":{"__type":"TimeZoneContext:#Exchange","TimeZoneDefinition":{"__type":"TimeZoneDefinitionType:#Exchange","Id":"France Standard Time"}}},"Body":{"__type":"CreateItemRequest:#Exchange","Items":[{"__type":"Message:#Exchange","Subject":"API","Body":{"__type":"BodyContentType:#Exchange","BodyType":"HTML","Value":"<html><head><meta http-equiv=\"Content-Type\" content=\"text/html; charset=UTF-8\"><style type=\"text/css\" style=\"display:none\"><!-- p { margin-top: 0px; margin-bottom: 0px; }--></style></head><body dir=\"ltr\" style=\"font-size:12pt;color:#000000;background-color:#FFFFFF;font-family:Calibri,Arial,Helvetica,sans-serif;\"><p>API Test for NickC<br></p></body></html>"},"Importance":"Normal","From":null,"ToRecipients":[{"Name":"George LUCAS","EmailAddress":"George.LUCAS@nih.mail.edu.fr","RoutingType":"SMTP","MailboxType":"Mailbox","OriginalDisplayName":"George.LUCAS@nih.mail.edu.fr","SipUri":" "}],"CcRecipients":[],"BccRecipients":[],"Sensitivity":"Normal","IsDeliveryReceiptRequested":false,"IsReadReceiptRequested":false}],"ClientSupportsIrm":true,"OutboundCharset":"AutoDetect","MessageDisposition":"SendAndSaveCopy","ComposeOperation":"newMail"}}'
|
||||
1
test/fixtures/curl_commands/post_empty.sh
vendored
Normal file
1
test/fixtures/curl_commands/post_empty.sh
vendored
Normal file
@@ -0,0 +1 @@
|
||||
curl --data-binary "" http://localhost:28139
|
||||
1
test/fixtures/curl_commands/post_escaped_double_quotes_in_single_quotes.sh
vendored
Normal file
1
test/fixtures/curl_commands/post_escaped_double_quotes_in_single_quotes.sh
vendored
Normal file
@@ -0,0 +1 @@
|
||||
curl -X POST http://example.com/ --data 'foo=\"bar\"'
|
||||
1
test/fixtures/curl_commands/post_escaped_single_quotes_in_double_quotes.sh
vendored
Normal file
1
test/fixtures/curl_commands/post_escaped_single_quotes_in_double_quotes.sh
vendored
Normal file
@@ -0,0 +1 @@
|
||||
curl -X POST http://example.com/ --data "foo=\'bar\'"
|
||||
1
test/fixtures/curl_commands/post_form.sh
vendored
Normal file
1
test/fixtures/curl_commands/post_form.sh
vendored
Normal file
@@ -0,0 +1 @@
|
||||
curl -X POST -F 'username=davidwalsh' -F 'password=something' http://domain.tld/post-to-me.php
|
||||
1
test/fixtures/curl_commands/post_image.sh
vendored
Normal file
1
test/fixtures/curl_commands/post_image.sh
vendored
Normal file
@@ -0,0 +1 @@
|
||||
curl -F "image=@image.jpg" http://example.com/targetservice
|
||||
1
test/fixtures/curl_commands/post_json.sh
vendored
Normal file
1
test/fixtures/curl_commands/post_json.sh
vendored
Normal file
@@ -0,0 +1 @@
|
||||
curl --json '{ "drink":' --json ' "coffe" }' https://example.com
|
||||
1
test/fixtures/curl_commands/post_json_multiple_headers.sh
vendored
Normal file
1
test/fixtures/curl_commands/post_json_multiple_headers.sh
vendored
Normal file
@@ -0,0 +1 @@
|
||||
curl -v -H "Content-Type: application/json" -H "X-API-Version: 200" -d '{"userName":"username123","password":"password123", "authLoginDomain":"local"}' -X POST -k https://0.0.0.0/rest/login-sessions
|
||||
1
test/fixtures/curl_commands/post_number.sh
vendored
Normal file
1
test/fixtures/curl_commands/post_number.sh
vendored
Normal file
@@ -0,0 +1 @@
|
||||
curl -X POST -d '123' http://a.com
|
||||
1
test/fixtures/curl_commands/post_quotes_inside_data.sh
vendored
Normal file
1
test/fixtures/curl_commands/post_quotes_inside_data.sh
vendored
Normal file
@@ -0,0 +1 @@
|
||||
curl google.com --data 'field=don%27t%20you%20like%20quotes'
|
||||
1
test/fixtures/curl_commands/post_same_field_multiple_times.sh
vendored
Normal file
1
test/fixtures/curl_commands/post_same_field_multiple_times.sh
vendored
Normal file
@@ -0,0 +1 @@
|
||||
curl -X POST http://example.com/ --data 'foo=bar&foo=&foo=barbar'
|
||||
1
test/fixtures/curl_commands/post_with_browser_headers.sh
vendored
Normal file
1
test/fixtures/curl_commands/post_with_browser_headers.sh
vendored
Normal file
@@ -0,0 +1 @@
|
||||
curl 'http://www.w3schools.com/ajax/demo_post.asp' -X POST -H 'Origin: http://www.w3schools.com' -H 'Accept-Encoding: gzip, deflate' -H 'Accept-Language: en-US,en;q=0.8' -H 'User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_10_1) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/39.0.2171.95 Safari/537.36' -H 'Accept: */*' -H 'Referer: http://www.w3schools.com/ajax/tryit_view.asp?x=0.07944501144811511' -H 'Cookie: _gat=1; ASPSESSIONIDACCRDTDC=MCMDKFMBLLLHGKCGNMKNGPKI; _ga=GA1.2.1424920226.1419478126' -H 'Connection: keep-alive' -H 'Content-Length: 0' --compressed
|
||||
1
test/fixtures/curl_commands/post_with_colon_in_header.sh
vendored
Normal file
1
test/fixtures/curl_commands/post_with_colon_in_header.sh
vendored
Normal file
@@ -0,0 +1 @@
|
||||
curl -i -X POST http://1.2.3.4/endpoint -H "Content-Type:application/json" -H 'key:abcdefg'
|
||||
1
test/fixtures/curl_commands/post_with_data-ascii.sh
vendored
Normal file
1
test/fixtures/curl_commands/post_with_data-ascii.sh
vendored
Normal file
@@ -0,0 +1 @@
|
||||
curl 'http://fiddle.jshell.net/echo/html/' -H 'Origin: http://fiddle.jshell.net' -H 'Accept-Encoding: gzip, deflate' -H 'Accept-Language: en-US,en;q=0.8' -H 'User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_10_1) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/39.0.2171.95 Safari/537.36' -H 'Content-Type: application/x-www-form-urlencoded; charset=UTF-8' -H 'Accept: */*' -H 'Referer: http://fiddle.jshell.net/_display/' -H 'X-Requested-With: XMLHttpRequest' -H 'Connection: keep-alive' --data-ascii 'msg1=wow&msg2=such' --compressed
|
||||
1
test/fixtures/curl_commands/post_with_data_binary.sh
vendored
Normal file
1
test/fixtures/curl_commands/post_with_data_binary.sh
vendored
Normal file
@@ -0,0 +1 @@
|
||||
curl 'http://localhost:28139/post' --data-binary '{"title":"china1"}'
|
||||
1
test/fixtures/curl_commands/post_with_data_raw.sh
vendored
Normal file
1
test/fixtures/curl_commands/post_with_data_raw.sh
vendored
Normal file
@@ -0,0 +1 @@
|
||||
curl 'http://example.com/post' --data-ascii 'msg1=wow&msg2=such&msg3=@rawmsg'
|
||||
1
test/fixtures/curl_commands/post_with_data_with_percent_sign.sh
vendored
Normal file
1
test/fixtures/curl_commands/post_with_data_with_percent_sign.sh
vendored
Normal file
@@ -0,0 +1 @@
|
||||
curl --data 'secret=*%5*!' https://postman-echo.com/post
|
||||
1
test/fixtures/curl_commands/post_with_double_quotes_inside_single_quotes.sh
vendored
Normal file
1
test/fixtures/curl_commands/post_with_double_quotes_inside_single_quotes.sh
vendored
Normal file
@@ -0,0 +1 @@
|
||||
curl -X POST http://example.com/ --data 'foo="bar"'
|
||||
1
test/fixtures/curl_commands/post_with_escaped_double_quotes.sh
vendored
Normal file
1
test/fixtures/curl_commands/post_with_escaped_double_quotes.sh
vendored
Normal file
@@ -0,0 +1 @@
|
||||
curl -X POST http://example.com/ --data "foo=\"bar\""
|
||||
1
test/fixtures/curl_commands/post_with_extra_whitespace.sh
vendored
Normal file
1
test/fixtures/curl_commands/post_with_extra_whitespace.sh
vendored
Normal file
@@ -0,0 +1 @@
|
||||
curl -X POST "http://129.12.19.62/api/library" -H "accept: application/json" -H "Content-Type: multipart/form-data" -F "files=@47.htz" -F "name=47" -F "oldMediaId=47" -F "updateInLayouts=1" -F "deleteOldRevisions=1"
|
||||
6
test/fixtures/curl_commands/post_with_quotes_anywhere.sh
vendored
Normal file
6
test/fixtures/curl_commands/post_with_quotes_anywhere.sh
vendored
Normal file
@@ -0,0 +1,6 @@
|
||||
curl 'https://example.com' \
|
||||
-d "a=b&c=\"&d='" \
|
||||
-u "ol':asd\"" \
|
||||
-H "A: ''a'" \
|
||||
-H 'B: "' \
|
||||
-H "Cookie: x=1'; y=2\""
|
||||
1
test/fixtures/curl_commands/post_with_single_quotes_inside_double_quotes.sh
vendored
Normal file
1
test/fixtures/curl_commands/post_with_single_quotes_inside_double_quotes.sh
vendored
Normal file
@@ -0,0 +1 @@
|
||||
curl -X POST http://example.com/ --data "foo='bar'"
|
||||
1
test/fixtures/curl_commands/post_with_urlencoded_data.sh
vendored
Normal file
1
test/fixtures/curl_commands/post_with_urlencoded_data.sh
vendored
Normal file
@@ -0,0 +1 @@
|
||||
curl 'http://fiddle.jshell.net/echo/html/' -H 'Origin: http://fiddle.jshell.net' -H 'Accept-Encoding: gzip, deflate' -H 'Accept-Language: en-US,en;q=0.8' -H 'User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_10_1) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/39.0.2171.95 Safari/537.36' -H 'Content-Type: application/x-www-form-urlencoded; charset=UTF-8' -H 'Accept: */*' -H 'Referer: http://fiddle.jshell.net/_display/' -H 'X-Requested-With: XMLHttpRequest' -H 'Connection: keep-alive' --data 'msg1=wow&msg2=such' --compressed
|
||||
1
test/fixtures/curl_commands/post_with_urlencoded_data_and_headers.sh
vendored
Normal file
1
test/fixtures/curl_commands/post_with_urlencoded_data_and_headers.sh
vendored
Normal file
@@ -0,0 +1 @@
|
||||
curl 'http://www.realtor.ca/api/Listing.svc/PropertySearch_Post' -H 'Origin: http://www.realtor.ca' -H 'Accept-Encoding: gzip, deflate' -H 'Accept-Language: en-US,en;q=0.8' -H 'User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_11_0) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/45.0.2454.101 Safari/537.36' -H 'Content-Type: application/x-www-form-urlencoded; charset=UTF-8' -H 'Accept: */*' -H 'Referer: http://www.realtor.ca/Residential/Map.aspx' -H 'Connection: keep-alive' --data 'CultureId=1&ApplicationId=1&RecordsPerPage=200&MaximumResults=200&PropertyTypeId=300&TransactionTypeId=2&StoreyRange=0-0&BuildingTypeId=1&BedRange=0-0&BathRange=0-0&LongitudeMin=-79.3676805496215&LongitudeMax=-79.27300930023185&LatitudeMin=43.660358732823845&LatitudeMax=43.692390574029936&SortOrder=A&SortBy=1&viewState=m&Longitude=-79.4107246398925&Latitude=43.6552047278685&ZoomLevel=13&CurrentPage=1'
|
||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user