Home
last modified time | relevance | path

Searched refs:json (Results 1 – 25 of 28) sorted by relevance

12

/curl/docs/cmdline-opts/
H A Djson.md4 Long: json
16 - --json '{ "drink": "coffe" }' $URL
17 - --json '{ "drink":' --json ' "coffe" }' $URL
18 - --json @prepared $URL
19 - --json @- $URL < json.txt
22 # `--json`
24 Sends the specified JSON data in a POST request to the HTTP server. --json
28 --header "Content-Type: application/json"
29 --header "Accept: application/json"
36 stdin. Posting data from a file named 'foobar' would thus be done with --json
[all …]
H A Dvariable.md51 ## json section
H A DMakefile.inc143 json.md \
/curl/tests/http/
H A Dtest_17_ssl_use.py27 import json
58 assert r.json['HTTPS'] == 'on', f'{r.json}'
59 assert 'SSL_SESSION_ID' in r.json, f'{r.json}'
60 assert 'SSL_SESSION_RESUMED' in r.json, f'{r.json}'
96 djson = json.load(f)
113 assert r.json, f'{r}'
130 assert r.json, f'{r.stdout}'
154 assert r.json, f'{r}'
169 assert r.json, f'{r}'
239 assert r.json['HTTPS'] == 'on', r.dump_logs()
[all …]
H A Dtest_01_basic.py50 assert r.json['server'] == env.domain1
59 assert r.json['server'] == env.domain1
68 assert r.json['server'] == env.domain1
77 assert r.json['server'] == env.domain2
86 assert r.json['server'] == env.domain1
130 assert r.json['server'] == env.domain1
141 assert r.json['server'] == env.domain1
H A Dscorecard.py28 import json
838 if args.json:
839 print(json.JSONEncoder(indent=2).encode(score))
/curl/tests/data/
H A Dtest3836 --json
35 HTTP with --json
38 --json '{ "drink": "coffe" }' http://%HOSTIP:%HTTPPORT/%TESTNUMBER
49 Content-Type: application/json
50 Accept: application/json
H A Dtest3856 --json
35 HTTP with --json x 2
38 --json '{ "drink": "coffe",' --json ' "crunch": "cookie" }' http://%HOSTIP:%HTTPPORT/%TESTNUMBER -H…
50 Accept: application/json
H A Dtest3866 --json
49 HTTP with --json + --next
52 --json '{ "drink": "coffe" }' http://%HOSTIP:%HTTPPORT/%TESTNUMBER --next http://%HOSTIP:%HTTPPORT/…
63 Content-Type: application/json
64 Accept: application/json
H A Dtest3846 --json
35 HTTP with --json from stdin
41 --json @- http://%HOSTIP:%HTTPPORT/%TESTNUMBER -H "Accept: foobar/*"
53 Content-Type: application/json
H A Dtest42115 content-type: application/json
66 "content-type":["application/json"],
H A Dtest26841 http://%HOSTIP:%HTTPPORT/%TESTNUMBER --variable hello@%LOGDIR/junk --expand-data {{hello:json}}
H A Dtest45141 …ariable second=hello --variable second=again --expand-data "--{{what:trim:json}}22{{none}}--{{seco…
H A Dtest97047 http://%HOSTIP:%HTTPPORT/%TESTNUMBER --write-out '%{json}' -o %LOGDIR/out%TESTNUMBER
H A Dtest97248 http://%HOSTIP:%HTTPPORT/%TESTNUMBER -s --write-out '%{json}\n' -o %LOGDIR/out972
/curl/docs/libcurl/opts/
H A DCURLOPT_POSTFIELDS.md102 /* send an application/json POST */
105 const char *json = "{\"name\": \"daniel\"}";
107 slist1 = curl_slist_append(slist1, "Content-Type: application/json");
108 slist1 = curl_slist_append(slist1, "Accept: application/json");
116 curl_easy_setopt(curl, CURLOPT_POSTFIELDS, json);
H A DCURLOPT_SUPPRESS_CONNECT_HEADERS.md49 Content-Type: application/json
62 Content-Type: application/json
/curl/.github/workflows/
H A Dhacktoberfest-accepted.yml36 …gh repo view --json repositoryTopics --jq '.repositoryTopics[].name' | grep '^hacktoberfest$')" >>…
50 gh pr view {} --json number,createdAt \
61 gh pr view "https://{}" --json number,createdAt \
H A Dcheckdocs.yml52 # cat <<JSON > $HOME/.proselintrc.json
73 # cat <<JSON > $HOME/.proselintrc.json
/curl/
H A DREUSE.toml38 "renovate.json",
/curl/tests/http/testenv/
H A Dcurl.py27 import json
214 self._json_out = json.loads(out)
226 self._stats.append(json.loads(line))
249 def json(self) -> Optional[Dict]: member in ExecResult
433 json.JSONEncoder(indent=2).encode(x),
H A Dcaddy.py32 from json import JSONEncoder
H A Dhttpd.py32 from json import JSONEncoder
/curl/docs/
H A Doptions-in-versions108 --json 7.82.0
/curl/.github/scripts/
H A Dspellcheck.words399 json

Completed in 28 milliseconds

12