Home
last modified time | relevance | path

Searched refs:header (Results 1 – 25 of 255) sorted by relevance

1234567891011

/curl/tests/libtest/
H A Dlib1940.c52 struct curl_header *header; in showem() local
55 HEADER_REQUEST, &header)) { in showem()
56 if(header->amount > 1) { in showem()
59 size_t amount = header->amount; in showem()
61 printf("- %s == %s (%u/%u)\n", header->name, header->value, in showem()
67 HEADER_REQUEST, &header)) in showem()
73 printf(" %s == %s\n", header->name, header->value); in showem()
H A Dlib1945.c35 struct curl_header *header = NULL; in showem() local
38 while((header = curl_easy_nextheader(easy, type, 0, prev))) { in showem()
39 printf(" %s == %s (%u/%u)\n", header->name, header->value, in showem()
40 (int)header->index, (int)header->amount); in showem()
41 prev = header; in showem()
H A Dlib1593.c33 struct curl_slist *header = NULL; in test() local
47 header = curl_slist_append(NULL, "If-Modified-Since:"); in test()
48 if(!header) { in test()
53 easy_setopt(curl, CURLOPT_HTTPHEADER, header); in test()
77 curl_slist_free_all(header); in test()
/curl/src/
H A Dtool_writeout_json.c128 struct curl_header *header; in headerJSON() local
134 if(header->amount > 1) { in headerJSON()
135 if(!header->index) { in headerJSON()
138 size_t a = header->amount; in headerJSON()
140 char *name = header->name; in headerJSON()
143 jsonWriteString(stream, header->name, TRUE); in headerJSON()
145 prev = header; in headerJSON()
153 -1, &header)) in headerJSON()
162 jsonWriteString(stream, header->name, TRUE); in headerJSON()
165 jsonWriteString(stream, header->value, FALSE); in headerJSON()
[all …]
/curl/docs/cmdline-opts/
H A Dproxy-header.md4 Long: proxy-header
5 Arg: <header/@file>
6 Help: Pass custom header(s) to proxy
14 - --proxy-header "X-First-Name: Joe" -x http://proxy $URL
15 - --proxy-header "User-Agent: surprise" -x http://proxy $URL
16 - --proxy-header "Host:" -x http://proxy $URL
19 # `--proxy-header`
21 Extra header to include in the request when sending HTTP to a proxy. You may
24 separate header sent to the proxy to what is sent to the actual remote host.
26 curl makes sure that each header you add/replace is sent with the proper
[all …]
H A Duser-agent.md13 - header
14 - proxy-header
22 the string, surround the string with single quote marks. This header can also
23 be set with the --header or the --proxy-header options.
25 If you give an empty argument to --user-agent (""), it removes the header
26 completely from the request. If you prefer a blank header, you can set it to a
H A Dheader.md4 Long: header
6 Arg: <header/@file>
7 Help: Pass custom header(s) to server
22 # `--header`
24 Extra header to include in information sent. When used within an HTTP request,
32 custom header that has the same name as one of the internal ones curl would
33 use, your externally set header is used instead of the internal one. This
36 doing. Remove an internal header by giving a replacement without content on
41 curl makes sure that each header you add/replace is sent with the proper
55 You need --proxy-header to send custom headers intended for an HTTP proxy.
[all …]
H A Ddump-header.md4 Long: dump-header
15 - --dump-header store.txt $URL
16 - --dump-header - $URL -o save
19 # `--dump-header`
32 missing directory components for the path provided in --dump-header.
/curl/lib/
H A Dheaders.c193 *name = header; in namevalue()
198 header++; in namevalue()
202 while(*header && (*header != ':')) in namevalue()
203 ++header; in namevalue()
205 if(*header) in namevalue()
207 *header++ = 0; in namevalue()
212 while(*header && ISBLANK(*header)) in namevalue()
213 header++; in namevalue()
287 if((header[0] == '\r') || (header[0] == '\n')) in Curl_headers_push()
300 if((header[0] == ' ') || (header[0] == '\t')) { in Curl_headers_push()
[all …]
H A Dhttp_digest.c48 const char *header) /* rest of the *-authenticate: in Curl_input_digest() argument
61 if(!checkprefix("Digest", header) || !ISBLANK(header[6])) in Curl_input_digest()
64 header += strlen("Digest"); in Curl_input_digest()
65 while(*header && ISBLANK(*header)) in Curl_input_digest()
66 header++; in Curl_input_digest()
68 return Curl_auth_decode_digest_http_message(header, digest); in Curl_input_digest()
H A Dhttp_ntlm.c66 const char *header) /* rest of the www-authenticate: in Curl_input_ntlm() argument
78 if(checkprefix("NTLM", header)) { in Curl_input_ntlm()
79 header += strlen("NTLM"); in Curl_input_ntlm()
81 while(*header && ISSPACE(*header)) in Curl_input_ntlm()
82 header++; in Curl_input_ntlm()
84 if(*header) { in Curl_input_ntlm()
88 result = Curl_base64_decode(header, &hdr, &hdrlen); in Curl_input_ntlm()
/curl/.github/scripts/
H A Dcleancmd.pl12 my $header = 1;
17 $header = 0;
28 my $ignore = $header;
32 if(/^---/ && $header) {
/curl/tests/data/
H A Dtest142850 HTTP over proxy-tunnel with --proxy-header and --header
53 …R -p -x %HOSTIP:%PROXYPORT --user 'iam:my:;self' --header "header-type: server" --proxy-header "he…
68 header-type: proxy
77 header-type: server
H A Dtest148228 chunky-trailer: header data
29 another-header: yes
41 chunky-trailer: header data
42 another-header: yes
57 HTTP GET with double chunked in TE header
81 chunky-trailer: header data
82 another-header: yes
H A Dtest148329 chunky-trailer: header data
30 another-header: yes
43 chunky-trailer: header data
44 another-header: yes
59 HTTP GET with double chunked in TE header
84 chunky-trailer: header data
85 another-header: yes
H A Dtest64633 …tml version</body>;headers=X-test1: this is a header;type=text/html;headers=X-test2: this is anoth…
42 X-fileheader1: This is a header from a file
44 # This line is another comment. It precedes a folded header.
47 folded header
78 X-test1: this is a header
79 X-test2: this is another header
83 X-fileheader1: This is a header from a file
84 X-fileheader2: This is #a folded header
91 X-fileheader1: This is a header from a file
92 X-fileheader2: This is #a folded header
H A Dtest111628 chunky-trailer: header data
29 another-header: yes
41 chunky-trailer: header data
42 another-header: yes
81 chunky-trailer: header data
82 another-header: yes
H A Dtest154127 CURLINFO_CONNECT_TIME_T on 1st header is OK
28 CURLINFO_PRETRANSFER_TIME_T on 1st header is OK
29 CURLINFO_STARTTRANSFER_TIME_T on 1st header is OK
30 CURLINFO_TOTAL_TIME_T on 1st header is OK
31 CURLINFO_APPCONNECT_TIME_T on 1st header is OK
32 CURLINFO_SPEED_DOWNLOAD_T on 1st header is OK
H A Dtest16707 %header
40 -w individual header output
43 http://%HOSTIP:%HTTPPORT/%TESTNUMBER -w '%header{etag} %header{nope} %header{DATE}\n' -o %LOGDIR/%T…
/curl/scripts/
H A Dcd2nroff370 my $header = 0;
443 $header = 1;
448 $header = 1;
468 $header = 1;
477 $header = 1;
481 $header = 1;
486 push @desc, "\n" if($blankline && !$header);
487 $header = 0;
494 $header = 0;
501 $header = 0;
[all …]
H A Dnroff2cd51 my $header; # non-zero when TH is passed
60 if(!$header) {
77 $header = 1;
189 return !$header;
/curl/docs/libcurl/
H A Dcurl_easy_header.md20 curl_easy_header - get an HTTP header
38 with data for the HTTP response header *name*. The case insensitive
39 null-terminated header name should be specified without colon.
41 *index* 0 means asking for the first instance of the header. If the returned
42 header struct has **amount** set larger than 1, it means there are more
62 former, then only the latter is provided. If the first header survives the
73 considered a header by this function. Headers are the "name: value" lines
80 # The header struct
120 The header arrived as a header from the server.
124 The header arrived as a trailer. A header that arrives after the body.
[all …]
/curl/docs/libcurl/opts/
H A DCURLOPT_HEADERFUNCTION.md22 CURLOPT_HEADERFUNCTION - callback that receives header data
44 header data. The header callback is called once for each header and only
45 complete header lines are passed on to the callback. Parsing headers is easy
47 of that data is *nitems*; *size* is always 1. The provided header line is not
60 A complete HTTP header that is passed to this function can be up to
80 trailer is identical to an HTTP header and if such a trailer is received it is
83 response-body. 2) it comes after the final header line (CR LF) 3) a Trailer:
84 header among the regular response-headers mention what header(s) to expect in
96 folded header is a header that continues on a subsequent line and starts with
97 a whitespace. Such folds are passed to the header callback as separate ones,
[all …]
H A DCURLOPT_HAPROXYPROTOCOL.md16 CURLOPT_HAPROXYPROTOCOL - send HAProxy PROXY protocol v1 header
30 protocol v1 header at beginning of the connection. The default action is not to
31 send this header.
34 expects this header.
40 0, do not send any HAProxy PROXY protocol header
H A DCURLINFO_RETRY_AFTER.md33 issued. The information from the "Retry-After:" header.
35 While the HTTP header might contain a fixed date string, the
37 or zero if there was no header or the header could not be parsed.
41 Zero if there was no header.

Completed in 54 milliseconds

1234567891011