mirror of
https://github.com/curlconverter/curlconverter.git
synced 2022-05-22 02:35:29 +03:00
make all tests request localhost:28139 (#377)
* make all test requests ping localhost:28139 so that they work with compare-requests * run gen-test * lint cfml
This commit is contained in:
committed by
GitHub
parent
4e46ceaf26
commit
6ad5664f0a
4
test/fixtures/ansible/delete.yml
vendored
4
test/fixtures/ansible/delete.yml
vendored
@@ -1,6 +1,6 @@
|
||||
-
|
||||
name: 'http://www.url.com/page'
|
||||
name: 'http://localhost:28139/page'
|
||||
uri:
|
||||
url: 'http://www.url.com/page'
|
||||
url: 'http://localhost:28139/page'
|
||||
method: DELETE
|
||||
register: result
|
||||
|
||||
4
test/fixtures/ansible/get_basic_auth.yml
vendored
4
test/fixtures/ansible/get_basic_auth.yml
vendored
@@ -1,7 +1,7 @@
|
||||
-
|
||||
name: 'https://api.test.com/'
|
||||
name: 'https://localhost:28139/'
|
||||
uri:
|
||||
url: 'https://api.test.com/'
|
||||
url: 'https://localhost:28139/'
|
||||
method: GET
|
||||
url_username: some_username
|
||||
url_password: some_password
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
-
|
||||
name: 'https://api.test.com/'
|
||||
name: 'http://localhost:28139/'
|
||||
uri:
|
||||
url: 'https://api.test.com/'
|
||||
url: 'http://localhost:28139/'
|
||||
method: GET
|
||||
url_password: some_password
|
||||
register: result
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
-
|
||||
name: 'https://www.nomador.com/house-sitting/'
|
||||
name: 'https://localhost:28139/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='
|
||||
url: 'https://localhost:28139/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
|
||||
|
||||
4
test/fixtures/ansible/get_insecure_full.yml
vendored
4
test/fixtures/ansible/get_insecure_full.yml
vendored
@@ -1,7 +1,7 @@
|
||||
-
|
||||
name: 'https://example.com'
|
||||
name: 'http://localhost:28139'
|
||||
uri:
|
||||
url: 'https://example.com'
|
||||
url: 'http://localhost:28139'
|
||||
method: GET
|
||||
validate_certs: no
|
||||
register: result
|
||||
|
||||
4
test/fixtures/ansible/get_insecure_k.yml
vendored
4
test/fixtures/ansible/get_insecure_k.yml
vendored
@@ -1,7 +1,7 @@
|
||||
-
|
||||
name: 'https://example.com'
|
||||
name: 'http://localhost:28139'
|
||||
uri:
|
||||
url: 'https://example.com'
|
||||
url: 'http://localhost:28139'
|
||||
method: GET
|
||||
validate_certs: no
|
||||
register: result
|
||||
|
||||
4
test/fixtures/ansible/get_insecure_short.yml
vendored
4
test/fixtures/ansible/get_insecure_short.yml
vendored
@@ -1,7 +1,7 @@
|
||||
-
|
||||
name: 'https://www.site.com'
|
||||
name: 'http://localhost:28139/'
|
||||
uri:
|
||||
url: 'https://www.site.com'
|
||||
url: 'http://localhost:28139/'
|
||||
method: GET
|
||||
validate_certs: no
|
||||
register: result
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
-
|
||||
name: 'http://en.wikipedia.org/'
|
||||
name: 'http://localhost:28139/'
|
||||
uri:
|
||||
url: 'http://en.wikipedia.org/'
|
||||
url: 'http://localhost:28139/'
|
||||
method: GET
|
||||
headers:
|
||||
Accept-Encoding: 'gzip, deflate, sdch'
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
-
|
||||
name: 'http://example.com/'
|
||||
name: 'http://localhost:28139/'
|
||||
uri:
|
||||
url: 'http://example.com/'
|
||||
url: 'http://localhost:28139/'
|
||||
method: GET
|
||||
headers:
|
||||
foo: 'bar'
|
||||
|
||||
4
test/fixtures/ansible/patch.yml
vendored
4
test/fixtures/ansible/patch.yml
vendored
@@ -1,7 +1,7 @@
|
||||
-
|
||||
name: 'https://ci.example.com/go/api/agents/adb9540a-b954-4571-9d9b-2f330739d4da'
|
||||
name: 'http://localhost:28139/go/api/agents/adb9540a-b954-4571-9d9b-2f330739d4da'
|
||||
uri:
|
||||
url: 'https://ci.example.com/go/api/agents/adb9540a-b954-4571-9d9b-2f330739d4da'
|
||||
url: 'http://localhost:28139/go/api/agents/adb9540a-b954-4571-9d9b-2f330739d4da'
|
||||
method: PATCH
|
||||
body:
|
||||
{"hostname":"agent02.example.com","agent_config_state":"Enabled","resources":["Java","Linux"],"environments":["Dev"]}
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
-
|
||||
name: 'https://0.0.0.0/rest/login-sessions'
|
||||
name: 'https://localhost:28139/rest/login-sessions'
|
||||
uri:
|
||||
url: 'https://0.0.0.0/rest/login-sessions'
|
||||
url: 'https://localhost:28139/rest/login-sessions'
|
||||
method: POST
|
||||
body:
|
||||
{"userName":"username123","password":"password123","authLoginDomain":"local"}
|
||||
|
||||
4
test/fixtures/ansible/post_number.yml
vendored
4
test/fixtures/ansible/post_number.yml
vendored
@@ -1,7 +1,7 @@
|
||||
-
|
||||
name: 'http://a.com'
|
||||
name: 'http://localhost:28139'
|
||||
uri:
|
||||
url: 'http://a.com'
|
||||
url: 'http://localhost:28139'
|
||||
method: POST
|
||||
body:
|
||||
123
|
||||
|
||||
4
test/fixtures/ansible/post_with_data_raw.yml
vendored
4
test/fixtures/ansible/post_with_data_raw.yml
vendored
@@ -1,7 +1,7 @@
|
||||
-
|
||||
name: 'http://example.com/post'
|
||||
name: 'http://localhost:28139/post'
|
||||
uri:
|
||||
url: 'http://example.com/post'
|
||||
url: 'http://localhost:28139/post'
|
||||
method: POST
|
||||
body:
|
||||
"msg1=wow&msg2=such&msg3=@rawmsg"
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
-
|
||||
name: 'http://fiddle.jshell.net/echo/html/'
|
||||
name: 'http://localhost:28139/echo/html/'
|
||||
uri:
|
||||
url: 'http://fiddle.jshell.net/echo/html/'
|
||||
url: 'http://localhost:28139/echo/html/'
|
||||
method: POST
|
||||
body:
|
||||
"msg1=wow&msg2=such"
|
||||
|
||||
4
test/fixtures/ansible/post_xpost.yml
vendored
4
test/fixtures/ansible/post_xpost.yml
vendored
@@ -1,7 +1,7 @@
|
||||
-
|
||||
name: 'http://us.jooble.org/api/xxxxxxxxxxxxxxxx'
|
||||
name: 'http://localhost:28139/api/xxxxxxxxxxxxxxxx'
|
||||
uri:
|
||||
url: 'http://us.jooble.org/api/xxxxxxxxxxxxxxxx'
|
||||
url: 'http://localhost:28139/api/xxxxxxxxxxxxxxxx'
|
||||
method: POST
|
||||
body:
|
||||
{"keywords":"php","page":1,"searchMode":1}
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
-
|
||||
name: 'http://localhost:5984/test/_security'
|
||||
name: 'http://localhost:28139/test/_security'
|
||||
uri:
|
||||
url: 'http://localhost:5984/test/_security'
|
||||
url: 'http://localhost:28139/test/_security'
|
||||
method: PUT
|
||||
body:
|
||||
{"admins":{"names":[],"roles":[]},"readers":{"names":["joe"],"roles":[]}}
|
||||
|
||||
4
test/fixtures/ansible/put_xput.yml
vendored
4
test/fixtures/ansible/put_xput.yml
vendored
@@ -1,7 +1,7 @@
|
||||
-
|
||||
name: 'http://localhost:9200/twitter/_mapping/user?pretty'
|
||||
name: 'http://localhost:28139/twitter/_mapping/user?pretty'
|
||||
uri:
|
||||
url: 'http://localhost:9200/twitter/_mapping/user?pretty'
|
||||
url: 'http://localhost:28139/twitter/_mapping/user?pretty'
|
||||
method: PUT
|
||||
body:
|
||||
{"properties":{"email":{"type":"keyword"}}}
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
-
|
||||
name: 'example.com'
|
||||
name: 'localhost:28139'
|
||||
uri:
|
||||
url: 'example.com'
|
||||
url: 'localhost:28139'
|
||||
method: WHAT
|
||||
register: result
|
||||
|
||||
2
test/fixtures/cfml/delete.cfm
vendored
2
test/fixtures/cfml/delete.cfm
vendored
@@ -1,5 +1,5 @@
|
||||
httpService = new http();
|
||||
httpService.setUrl("http://www.url.com/page");
|
||||
httpService.setUrl("http://localhost:28139/page");
|
||||
httpService.setMethod("DELETE");
|
||||
|
||||
result = httpService.send().getPrefix();
|
||||
|
||||
2
test/fixtures/cfml/delete_content_type.cfm
vendored
2
test/fixtures/cfml/delete_content_type.cfm
vendored
@@ -1,5 +1,5 @@
|
||||
httpService = new http();
|
||||
httpService.setUrl("example.com");
|
||||
httpService.setUrl("localhost:28139");
|
||||
httpService.setMethod("POST");
|
||||
httpService.addParam(type="header", name="Content-Type", value="application/json");
|
||||
httpService.addParam(type="body", value="{}");
|
||||
|
||||
2
test/fixtures/cfml/get_basic_auth.cfm
vendored
2
test/fixtures/cfml/get_basic_auth.cfm
vendored
@@ -1,5 +1,5 @@
|
||||
httpService = new http();
|
||||
httpService.setUrl("https://api.test.com/");
|
||||
httpService.setUrl("https://localhost:28139/");
|
||||
httpService.setMethod("GET");
|
||||
httpService.setUsername("some_username");
|
||||
httpService.setPassword("some_password");
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
httpService = new http();
|
||||
httpService.setUrl("https://api.test.com/");
|
||||
httpService.setUrl("http://localhost:28139/");
|
||||
httpService.setMethod("GET");
|
||||
httpService.setUsername("");
|
||||
httpService.setPassword("some_password");
|
||||
|
||||
2
test/fixtures/cfml/get_charles_syntax.cfm
vendored
2
test/fixtures/cfml/get_charles_syntax.cfm
vendored
@@ -1,5 +1,5 @@
|
||||
httpService = new http();
|
||||
httpService.setUrl("http://api.ipify.org/?format=json&");
|
||||
httpService.setUrl("http://localhost:28139/?format=json&");
|
||||
httpService.setMethod("GET");
|
||||
httpService.addParam(type="header", name="Host", value="api.ipify.org");
|
||||
httpService.addParam(type="header", name="Accept", value="*/*");
|
||||
|
||||
2
test/fixtures/cfml/get_follow_location.cfm
vendored
2
test/fixtures/cfml/get_follow_location.cfm
vendored
@@ -1,5 +1,5 @@
|
||||
httpService = new http();
|
||||
httpService.setUrl("http://example.net");
|
||||
httpService.setUrl("http://localhost:28139");
|
||||
httpService.setMethod("GET");
|
||||
|
||||
result = httpService.send().getPrefix();
|
||||
|
||||
2
test/fixtures/cfml/get_max_time.cfm
vendored
2
test/fixtures/cfml/get_max_time.cfm
vendored
@@ -1,5 +1,5 @@
|
||||
httpService = new http();
|
||||
httpService.setUrl("http://example.com");
|
||||
httpService.setUrl("http://localhost:28139");
|
||||
httpService.setMethod("GET");
|
||||
httpService.setTimeout(20);
|
||||
|
||||
|
||||
2
test/fixtures/cfml/get_proxy.cfm
vendored
2
test/fixtures/cfml/get_proxy.cfm
vendored
@@ -1,5 +1,5 @@
|
||||
httpService = new http();
|
||||
httpService.setUrl("http://localhost:9000");
|
||||
httpService.setUrl("http://localhost:28139");
|
||||
httpService.setMethod("GET");
|
||||
httpService.setProxyServer("http://localhost");
|
||||
httpService.setProxyPort(8080);
|
||||
|
||||
2
test/fixtures/cfml/get_proxy_with_auth.cfm
vendored
2
test/fixtures/cfml/get_proxy_with_auth.cfm
vendored
@@ -1,5 +1,5 @@
|
||||
httpService = new http();
|
||||
httpService.setUrl("http://localhost:9000");
|
||||
httpService.setUrl("http://localhost:28139");
|
||||
httpService.setMethod("GET");
|
||||
httpService.setProxyServer("http://localhost");
|
||||
httpService.setProxyPort(8080);
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
httpService = new http();
|
||||
httpService.setUrl("http://en.wikipedia.org/");
|
||||
httpService.setUrl("http://localhost:28139/");
|
||||
httpService.setMethod("GET");
|
||||
httpService.addParam(type="cookie", name="GeoIP", value="US:Albuquerque:35.1241:-106.7675:v4");
|
||||
httpService.addParam(type="cookie", name="uls-previous-languages", value="%5B%22en%22%5D");
|
||||
|
||||
2
test/fixtures/cfml/j_patch_file_only.cfm
vendored
2
test/fixtures/cfml/j_patch_file_only.cfm
vendored
@@ -1,5 +1,5 @@
|
||||
httpService = new http();
|
||||
httpService.setUrl("http://httpbin.org/patch");
|
||||
httpService.setUrl("http://localhost:28139/patch");
|
||||
httpService.setMethod("PATCH");
|
||||
httpService.addParam(type="file", name="file1", file="#expandPath("./fixtures/curl_commands/delete.sh")#");
|
||||
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
httpService = new http();
|
||||
httpService.setUrl("http://httpbin.org/patch");
|
||||
httpService.setUrl("http://localhost:28139/patch");
|
||||
httpService.setMethod("PATCH");
|
||||
httpService.addParam(type="file", name="file1", file="#expandPath("./fixtures/curl_commands/delete.sh")#");
|
||||
httpService.addParam(type="formfield", name="form1", value="form+data+1");
|
||||
|
||||
2
test/fixtures/cfml/j_post_form_f.cfm
vendored
2
test/fixtures/cfml/j_post_form_f.cfm
vendored
@@ -1,5 +1,5 @@
|
||||
httpService = new http();
|
||||
httpService.setUrl("http://httpbin.org/post");
|
||||
httpService.setUrl("http://localhost:28139/post");
|
||||
httpService.setMethod("POST");
|
||||
httpService.addParam(type="formfield", name="d1", value="data1");
|
||||
httpService.addParam(type="formfield", name="d2", value="data");
|
||||
|
||||
2
test/fixtures/cfml/post_binary_file.cfm
vendored
2
test/fixtures/cfml/post_binary_file.cfm
vendored
@@ -1,5 +1,5 @@
|
||||
httpService = new http();
|
||||
httpService.setUrl("http://lodstories.isi.edu:3030/american-art/query");
|
||||
httpService.setUrl("http://localhost:28139/american-art/query");
|
||||
httpService.setMethod("POST");
|
||||
httpService.addParam(type="header", name="Content-type", value="application/sparql-query");
|
||||
httpService.addParam(type="header", name="Accept", value="application/sparql-results+json");
|
||||
|
||||
2
test/fixtures/cfml/post_form.cfm
vendored
2
test/fixtures/cfml/post_form.cfm
vendored
@@ -1,5 +1,5 @@
|
||||
httpService = new http();
|
||||
httpService.setUrl("http://domain.tld/post-to-me.php");
|
||||
httpService.setUrl("http://localhost:28139/post-to-me.php");
|
||||
httpService.setMethod("POST");
|
||||
httpService.addParam(type="formfield", name="username", value="davidwalsh");
|
||||
httpService.addParam(type="formfield", name="password", value="something");
|
||||
|
||||
2
test/fixtures/cfml/post_image.cfm
vendored
2
test/fixtures/cfml/post_image.cfm
vendored
@@ -1,5 +1,5 @@
|
||||
httpService = new http();
|
||||
httpService.setUrl("http://example.com/targetservice");
|
||||
httpService.setUrl("http://localhost:28139/targetservice");
|
||||
httpService.setMethod("POST");
|
||||
httpService.addParam(type="file", name="image", file="#expandPath("image.jpg")#");
|
||||
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
httpService = new http();
|
||||
httpService.setUrl("google.com");
|
||||
httpService.setUrl("localhost:28139");
|
||||
httpService.setMethod("POST");
|
||||
httpService.addParam(type="header", name="Content-Type", value="application/x-www-form-urlencoded");
|
||||
httpService.addParam(type="body", value="field=don%27t%20you%20like%20quotes");
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
httpService = new http();
|
||||
httpService.setUrl("http://www.w3schools.com/ajax/demo_post.asp");
|
||||
httpService.setUrl("http://localhost:28139/ajax/demo_post.asp");
|
||||
httpService.setMethod("POST");
|
||||
httpService.addParam(type="cookie", name="_gat", value="1");
|
||||
httpService.addParam(type="cookie", name="ASPSESSIONIDACCRDTDC", value="MCMDKFMBLLLHGKCGNMKNGPKI");
|
||||
|
||||
2
test/fixtures/cfml/post_with_data_raw.cfm
vendored
2
test/fixtures/cfml/post_with_data_raw.cfm
vendored
@@ -1,5 +1,5 @@
|
||||
httpService = new http();
|
||||
httpService.setUrl("http://example.com/post");
|
||||
httpService.setUrl("http://localhost:28139/post");
|
||||
httpService.setMethod("POST");
|
||||
httpService.addParam(type="header", name="Content-Type", value="application/x-www-form-urlencoded");
|
||||
httpService.addParam(type="body", value="msg1=wow&msg2=such&msg3=@rawmsg");
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
httpService = new http();
|
||||
httpService.setUrl("http://fiddle.jshell.net/echo/html/");
|
||||
httpService.setUrl("http://localhost:28139/echo/html/");
|
||||
httpService.setMethod("POST");
|
||||
httpService.addParam(type="header", name="Origin", value="http://fiddle.jshell.net");
|
||||
httpService.addParam(type="header", name="Accept-Encoding", value="gzip, deflate");
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
httpService = new http();
|
||||
httpService.setUrl("http://localhost:5984/test/_security");
|
||||
httpService.setUrl("http://localhost:28139/test/_security");
|
||||
httpService.setMethod("PUT");
|
||||
httpService.addParam(type="header", name="Content-Type", value="application/x-www-form-urlencoded");
|
||||
httpService.setUsername("admin");
|
||||
|
||||
2
test/fixtures/curl_commands/bash_redirect.sh
vendored
2
test/fixtures/curl_commands/bash_redirect.sh
vendored
@@ -1,2 +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
|
||||
curl -H "X-Requested-With: curl" -H "Content-Type: text/xml" -u "USER:PASS" -X "POST" --data-binary @- "https://localhost:28139/api/2.0/fo/auth/unix/?action=create&title=UnixRecord&username=root&password=abc123&ips=10.10.10.10" < add_params.xml
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
# 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
|
||||
curl -X POST http://localhost:28139/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}
|
||||
|
||||
@@ -1 +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
|
||||
curl -X POST http://localhost:28139/api/servers/00000000000/shared_servers/ -H "'Accept': 'application/json'" -H "Authorization: Bearer 000000000000000-0000" -H "Content-Type: application/json" --data-binary @- <<< $MYVARIABLE
|
||||
|
||||
2
test/fixtures/curl_commands/delete.sh
vendored
2
test/fixtures/curl_commands/delete.sh
vendored
@@ -1 +1 @@
|
||||
curl -X "DELETE" "http://www.url.com/page"
|
||||
curl -X "DELETE" "http://localhost:28139/page"
|
||||
|
||||
@@ -1 +1 @@
|
||||
curl --data '{}' -H 'Content-Type: application/json' example.com
|
||||
curl --data '{}' -H 'Content-Type: application/json' localhost:28139
|
||||
|
||||
@@ -1 +1 @@
|
||||
curl "https://api.test.com/" -u "some_username:some_password"
|
||||
curl "https://localhost:28139/" -u "some_username:some_password"
|
||||
|
||||
@@ -1 +1 @@
|
||||
curl "https://api.test.com/" -u ":some_password"
|
||||
curl "http://localhost:28139/" -u ":some_password"
|
||||
|
||||
@@ -1 +1 @@
|
||||
curl --cert /path/to/the/cert --cacert /path/to/ca-bundle.crt https://example.com
|
||||
curl --cert /path/to/the/cert --cacert /path/to/ca-bundle.crt http://localhost:28139/
|
||||
|
||||
@@ -1 +1 @@
|
||||
curl --cert /path/to/cert --key /path/to/key --capath /path/to/ca https://example.com
|
||||
curl --cert /path/to/cert --key /path/to/key --capath /path/to/ca https://localhost:28139
|
||||
|
||||
@@ -1 +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&"
|
||||
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://localhost:28139/?format=json&"
|
||||
|
||||
@@ -1 +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='
|
||||
curl 'https://localhost:28139/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 +1 @@
|
||||
curl -X GET "https://httpbin.org/cookies" -H "accept: application/json" -H 'Cookie: mysamplecookie=someValue; emptycookie=; otherCookie=2'
|
||||
curl -X GET "https://localhost:28139/cookies" -H "accept: application/json" -H 'Cookie: mysamplecookie=someValue; emptycookie=; otherCookie=2'
|
||||
|
||||
@@ -1 +1 @@
|
||||
curl 'http://example.net' -L
|
||||
curl 'http://localhost:28139' -L
|
||||
|
||||
@@ -1 +1 @@
|
||||
curl -L http://www.google.com
|
||||
curl -L http://localhost:28139
|
||||
|
||||
@@ -1 +1 @@
|
||||
curl --http2 example.com
|
||||
curl --http2 localhost:28139
|
||||
|
||||
@@ -1 +1 @@
|
||||
curl -k "https://api.test.com/" -u "some_username:some_password"
|
||||
curl -k "https://localhost:28139/" -u "some_username:some_password"
|
||||
|
||||
@@ -1 +1 @@
|
||||
curl --insecure -X GET https://example.com
|
||||
curl --insecure -X GET http://localhost:28139
|
||||
|
||||
@@ -1 +1 @@
|
||||
curl -k -X GET https://example.com
|
||||
curl -k -X GET http://localhost:28139
|
||||
|
||||
@@ -1 +1,2 @@
|
||||
curl -k 'https://www.site.com'
|
||||
# This test doesn't really make sense with http://
|
||||
curl -k 'http://localhost:28139/'
|
||||
|
||||
@@ -1 +1 @@
|
||||
curl -X GET --header 'Accept: application/json' --header 'user-token: 75d7ce4350c7d6239347bf23d3a3e668' 'http://localhost:8080/api/retail/books/list'
|
||||
curl -X GET --header 'Accept: application/json' --header 'user-token: 75d7ce4350c7d6239347bf23d3a3e668' 'http://localhost:28139/api/retail/books/list'
|
||||
|
||||
2
test/fixtures/curl_commands/get_max_time.sh
vendored
2
test/fixtures/curl_commands/get_max_time.sh
vendored
@@ -1 +1 @@
|
||||
curl 'http://example.com' -m 20
|
||||
curl 'http://localhost:28139' -m 20
|
||||
|
||||
2
test/fixtures/curl_commands/get_proxy.sh
vendored
2
test/fixtures/curl_commands/get_proxy.sh
vendored
@@ -1 +1 @@
|
||||
curl 'http://localhost:9000' -x 'http://localhost:8080'
|
||||
curl 'http://localhost:28139' -x 'http://localhost:8080'
|
||||
|
||||
@@ -1 +1 @@
|
||||
curl 'http://localhost:9000' --proxy 'http://localhost:8080' -U 'anonymous:anonymous'
|
||||
curl 'http://localhost:28139' --proxy 'http://localhost:8080' -U 'anonymous:anonymous'
|
||||
|
||||
2
test/fixtures/curl_commands/get_referer.sh
vendored
2
test/fixtures/curl_commands/get_referer.sh
vendored
@@ -1 +1 @@
|
||||
curl https://website.com/api -G -H "X-Requested-With: XMLHttpRequest" -e "https://website.com" -A "SimCity"
|
||||
curl http://localhost:28139 -G -H "X-Requested-With: XMLHttpRequest" -e "https://website.com" -A "SimCity"
|
||||
|
||||
2
test/fixtures/curl_commands/get_silent.sh
vendored
2
test/fixtures/curl_commands/get_silent.sh
vendored
@@ -1 +1 @@
|
||||
curl --silent 'www.google.com'
|
||||
curl --silent 'localhost:28139'
|
||||
|
||||
@@ -1 +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"
|
||||
curl --trace-ascii log2.txt --user-agent "Mozilla Android6.1" -i --header "x-msisdn:XXXXXXXXXXXXX" -L "http://localhost:28139/vc/moviesmagic?p=5&pub=testmovie&tkn=817263812"
|
||||
|
||||
@@ -1 +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"
|
||||
curl --trace-ascii log2.txt --user-agent "Mozilla Android6.1" -i --header "x-msisdn:XXXXXXXXXXXXX" -L "http://localhost:28139/vc/moviesmagic?p=5&pub=testmovie&tkn=817263812"
|
||||
|
||||
@@ -1 +1 @@
|
||||
curl -X POST --header 'Content-Type: application/json' --header 'Accept: application/json' -d '18233982904' 'http://198.30.191.00:8309/CurlToNode'
|
||||
curl -X POST --header 'Content-Type: application/json' --header 'Accept: application/json' -d '18233982904' 'http://localhost:28139/CurlToNode'
|
||||
@@ -1 +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
|
||||
curl 'http://localhost:28139/' -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 +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
|
||||
curl 'http://localhost:28139/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
|
||||
|
||||
2
test/fixtures/curl_commands/get_with_data.sh
vendored
2
test/fixtures/curl_commands/get_with_data.sh
vendored
@@ -1 +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'
|
||||
curl -v -H 'X-Api-Key:123456789' 'http://localhost:28139/synthetics/api/v3/monitors?test=2' -G -d 'limit=100' -d 'w=4'
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
curl -X PUT 'https://api.newrelic.com/v2/alerts_policy_channels.json' \
|
||||
curl -X PUT 'http://localhost:28139/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 +1 @@
|
||||
curl -X GET -H "Content-Type: application/json" -H "Authorization: Bearer $DO_API_TOKEN" "https://api.digitalocean.com/v2/images?type=distribution"
|
||||
curl -X GET -H "Content-Type: application/json" -H "Authorization: Bearer $DO_API_TOKEN" "http://localhost:28139/v2/images?type=distribution"
|
||||
2
test/fixtures/curl_commands/get_with_form.sh
vendored
2
test/fixtures/curl_commands/get_with_form.sh
vendored
@@ -1,5 +1,5 @@
|
||||
curl -s --user 'test' \
|
||||
https://api.net/v3 \
|
||||
http://localhost:28139/v3 \
|
||||
-F from='test@tester.com' \
|
||||
-F to='devs@tester.net' \
|
||||
-F subject='Hello' \
|
||||
|
||||
@@ -1 +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
|
||||
curl -v -H 'cookie: secure_user_id=InNlY3VyZTEwNjI3Ig%3D%3D--3b5df49345735791f2b80eddafb630cdcba76a1d; adaptive_image=1440; has_js=1; ccShowCookieIcon=no; _web_session=Y2h...e5' http://localhost:28139/page
|
||||
|
||||
@@ -1 +1 @@
|
||||
curl --header "Content-Type: text/xml;charset=UTF-8" --header "getWorkOrderCancel;" postman-echo.com/get
|
||||
curl --header "Content-Type: text/xml;charset=UTF-8" --header "getWorkOrderCancel;" localhost:28139/get
|
||||
|
||||
@@ -1 +1 @@
|
||||
curl http://example.com/ -H 'foo: bar'
|
||||
curl http://localhost:28139/ -H 'foo: bar'
|
||||
|
||||
@@ -1 +0,0 @@
|
||||
curl http://indeed.com
|
||||
2
test/fixtures/curl_commands/head.sh
vendored
2
test/fixtures/curl_commands/head.sh
vendored
@@ -1 +1 @@
|
||||
curl --head http://www.url.com/page
|
||||
curl --head http://localhost:28139/page
|
||||
|
||||
@@ -1 +1 @@
|
||||
curl -I http://www.url.com/page
|
||||
curl -I http://localhost:28139/page
|
||||
|
||||
@@ -1 +1 @@
|
||||
curl --head url.com/page
|
||||
curl --head localhost:28139/page
|
||||
|
||||
@@ -1 +1 @@
|
||||
curl http://httpbin.org/post -d data1=data1 -d data2=data2 -d data3=data3 -F file1=./fixtures/curl_commands/delete.sh
|
||||
curl http://localhost:28139/post -d data1=data1 -d data2=data2 -d data3=data3 -F file1=./fixtures/curl_commands/delete.sh
|
||||
|
||||
2
test/fixtures/curl_commands/j_patch_array.sh
vendored
2
test/fixtures/curl_commands/j_patch_array.sh
vendored
@@ -1 +1 @@
|
||||
curl -XPATCH http://httpbin.org/patch -d item[]=1 -d item[]=2 -d item[]=3
|
||||
curl -XPATCH http://localhost:28139/patch -d item[]=1 -d item[]=2 -d item[]=3
|
||||
|
||||
@@ -1 +1 @@
|
||||
curl -XPATCH http://httpbin.org/patch -F file1=@./fixtures/curl_commands/delete.sh
|
||||
curl -XPATCH http://localhost:28139/patch -F file1=@./fixtures/curl_commands/delete.sh
|
||||
|
||||
@@ -1 +1 @@
|
||||
curl -XPATCH http://httpbin.org/patch -F file1=@./fixtures/curl_commands/delete.sh -F form1=form+data+1 -F form2=form_data_2
|
||||
curl -XPATCH http://localhost:28139/patch -F file1=@./fixtures/curl_commands/delete.sh -F form1=form+data+1 -F form2=form_data_2
|
||||
|
||||
@@ -1 +1 @@
|
||||
curl http://httpbin.org/post -d data1=data1 -d data2=data2 -d data3=data3
|
||||
curl http://localhost:28139/post -d data1=data1 -d data2=data2 -d data3=data3
|
||||
|
||||
2
test/fixtures/curl_commands/j_post_form_f.sh
vendored
2
test/fixtures/curl_commands/j_post_form_f.sh
vendored
@@ -1 +1 @@
|
||||
curl -F d1=data1 -F d2=data http://httpbin.org/post
|
||||
curl -F d1=data1 -F d2=data http://localhost:28139/post
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
curl -X GET 'http://fiddle.jshell.net/echo/html/' \
|
||||
curl -X GET 'http://localhost:28139/echo/html/' \
|
||||
-H 'Origin: http://fiddle.jshell.net' \
|
||||
-d msg1="value1" \
|
||||
-d msg2="value2"
|
||||
|
||||
@@ -1 +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
|
||||
curl https://localhost:28139/api/2.0/files/content -H "Authorization: Bearer ACCESS_TOKEN" -X POST -F attributes='{"name":"tigers.jpeg", "parent":{"id":"11446498"}}' -F file=@myfile.jpg
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
curl https://upload.box.com/api/2.0/files/content \
|
||||
curl https://localhost:28139/api/2.0/files/content \
|
||||
-H "Authorization: Bearer ACCESS_TOKEN" \
|
||||
-X POST \
|
||||
-H 'X-Nice: Header' \
|
||||
|
||||
@@ -1 +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" }'
|
||||
curl -s 'https://localhost:28139/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" }'
|
||||
|
||||
2
test/fixtures/curl_commands/options.sh
vendored
2
test/fixtures/curl_commands/options.sh
vendored
@@ -1 +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
|
||||
curl "https://localhost:28139/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
|
||||
|
||||
2
test/fixtures/curl_commands/patch.sh
vendored
2
test/fixtures/curl_commands/patch.sh
vendored
@@ -1,5 +1,5 @@
|
||||
# https://github.com/NickCarneiro/curlconverter/issues/68
|
||||
curl 'https://ci.example.com/go/api/agents/adb9540a-b954-4571-9d9b-2f330739d4da' \
|
||||
curl 'http://localhost:28139/go/api/agents/adb9540a-b954-4571-9d9b-2f330739d4da' \
|
||||
-u 'username:password' \
|
||||
-H 'Accept: application/vnd.go.cd.v4+json' \
|
||||
-H 'Content-Type: application/json' \
|
||||
|
||||
@@ -1 +1 @@
|
||||
curl -X POST -d "grant_type=client_credentials" -u "foo:bar" http://localhost/api/oauth/token/
|
||||
curl -X POST -d "grant_type=client_credentials" -u "foo:bar" http://localhost:28139/api/oauth/token/
|
||||
|
||||
@@ -1 +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
|
||||
curl -i -X POST --data-binary @./sample.sparql -H "Content-type: application/sparql-query" -H "Accept: application/sparql-results+json" http://localhost:28139/american-art/query
|
||||
|
||||
@@ -1 +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"}}'
|
||||
curl 'http://localhost:28139/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 +1 @@
|
||||
curl -X POST http://example.com/ --data 'foo=\"bar\"'
|
||||
curl -X POST http://localhost:28139/ --data 'foo=\"bar\"'
|
||||
|
||||
@@ -1 +1 @@
|
||||
curl -X POST http://example.com/ --data "foo=\'bar\'"
|
||||
curl -X POST http://localhost:28139/ --data "foo=\'bar\'"
|
||||
|
||||
2
test/fixtures/curl_commands/post_form.sh
vendored
2
test/fixtures/curl_commands/post_form.sh
vendored
@@ -1 +1 @@
|
||||
curl -X POST -F 'username=davidwalsh' -F 'password=something' http://domain.tld/post-to-me.php
|
||||
curl -X POST -F 'username=davidwalsh' -F 'password=something' http://localhost:28139/post-to-me.php
|
||||
|
||||
2
test/fixtures/curl_commands/post_image.sh
vendored
2
test/fixtures/curl_commands/post_image.sh
vendored
@@ -1 +1 @@
|
||||
curl -F "image=@image.jpg" http://example.com/targetservice
|
||||
curl -F "image=@image.jpg" http://localhost:28139/targetservice
|
||||
|
||||
2
test/fixtures/curl_commands/post_json.sh
vendored
2
test/fixtures/curl_commands/post_json.sh
vendored
@@ -1 +1 @@
|
||||
curl --json '{ "drink":' --json ' "coffe" }' https://example.com
|
||||
curl --json '{ "drink":' --json ' "coffe" }' https://localhost:28139
|
||||
|
||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user