Home
last modified time | relevance | path

Searched refs:headers (Results 1 – 25 of 193) sorted by relevance

12345678

/curl/docs/cmdline-opts/
H A Dsuppress-connect-headers.md4 Long: suppress-connect-headers
5 Help: Suppress proxy CONNECT response headers
11 - show-headers
14 - --suppress-connect-headers --show-headers -x proxy $URL
17 # `--suppress-connect-headers`
20 CONNECT response headers. This option is meant to be used with --dump-header
21 or --show-headers which are used to show protocol headers in the output. It
H A Dshow-headers.md4 Long: show-headers
6 Help: Show response headers in output
17 # `--show-headers`
19 Show response headers in the output. HTTP response headers can include things
21 non-HTTP protocols, the "headers" are other server communication.
23 To view the request headers, consider the --verbose option.
25 Prior to 7.75.0 curl did not print the headers if --fail was used in
H A Ddump-header.md7 Help: Write the received headers to <filename>
21 Write the received protocol headers to the specified file. If no headers are
28 When used in FTP, the FTP server response lines are considered being "headers"
H A Dproxytunnel.md23 To suppress proxy CONNECT response headers when curl is set to output headers
24 use --suppress-connect-headers.
H A Dheader.md19 - -H @headers.txt $URL
25 it is added to the regular request headers.
31 You may specify any number of extra headers. Note that if you should add a
35 not replace internally set headers without knowing perfectly well what you are
52 several MIME mail headers: these are `From:`, `To:`, `Date:` and `Subject:`
55 You need --proxy-header to send custom headers intended for an HTTP proxy.
61 **WARNING**: headers set with this option are set in all HTTP requests - even
64 headers should be used with caution combined with following redirects.
/curl/docs/libcurl/
H A Dcurl_mime_headers.md19 curl_mime_headers - set a mime part's custom headers
27 struct curl_slist *headers, int take_ownership);
32 curl_mime_headers(3) sets a mime part's custom headers.
34 *part* is the part's handle to assign the custom headers list to.
36 *headers* is the head of a list of custom headers; it may be set to NULL
43 Setting a part's custom headers list multiple times is valid: only the value
53 struct curl_slist *headers = NULL;
58 headers = curl_slist_append(headers, "Custom-Header: mooo");
63 /* use these headers in the part, takes ownership */
64 curl_mime_headers(part, headers, 1);
H A Dcurl_easy_nextheader.md33 headers.
35 The *origin* argument is for specifying which headers to receive, as a single
36 HTTP transfer might provide headers from several different places and they may
37 then have different importance to the user and headers using the same name
41 The *request* argument tells libcurl from which request you want headers
44 headers from. 0 being the first request and then the number increases for
50 iterating over a range of headers as changing the value mid-loop might give
79 /* extract the normal headers from the first request */
85 /* extract the normal headers + 1xx + trailers from the last request */
100 (matching) headers or an error occurred.
[all …]
/curl/tests/unit/
H A Dunit1660.c56 static const struct testit headers[] = {
142 for(i = 0; headers[i].host ; i++) {
143 if(headers[i].hdr) {
144 result = Curl_hsts_parse(h, headers[i].host, headers[i].hdr);
146 if(result != headers[i].result) {
148 headers[i].hdr, result);
158 chost = headers[i].chost ? headers[i].chost : headers[i].host;
/curl/tests/libtest/
H A Dlib540.c52 struct curl_slist *headers) in init() argument
103 struct curl_slist *headers) in loop() argument
112 res = init(num, cm, url, userpwd, headers); in loop()
198 struct curl_slist *headers = NULL; in test() local
214 headers = curl_slist_append(headers, buffer); in test()
215 if(!headers) { in test()
222 curl_slist_free_all(headers); in test()
229 curl_slist_free_all(headers); in test()
233 res = loop(0, cm, URL, PROXYUSERPWD, headers); in test()
239 res = loop(1, cm, URL, PROXYUSERPWD, headers); in test()
[all …]
H A Dlib650.c54 struct curl_slist *headers, *headers2 = NULL; in test() local
68 headers = curl_slist_append(NULL, "X-customheader-1: Header 1 data"); in test()
69 if(!headers) { in test()
72 headers2 = curl_slist_append(headers, "X-customheader-2: Header 2 data"); in test()
76 headers = headers2; in test()
77 headers2 = curl_slist_append(headers, "Content-Type: text/plain"); in test()
81 headers = headers2; in test()
86 CURLFORM_CONTENTHEADER, headers, in test()
221 curl_slist_free_all(headers); in test()
H A Dlib506.c124 (void)headers; in sethost()
133 struct curl_slist *headers; in test_fire() local
143 headers = sethost(NULL); in test_fire()
161 curl_slist_free_all(headers); in test_fire()
184 struct curl_slist *headers = NULL; in test() local
292 headers = sethost(NULL); in test()
293 test_setopt(curl, CURLOPT_HTTPHEADER, headers); in test()
308 curl_slist_free_all(headers); in test()
319 headers = sethost(NULL); in test()
320 test_setopt(curl, CURLOPT_HTTPHEADER, headers); in test()
[all …]
/curl/docs/examples/
H A Dhttpput-postfields.c67 struct curl_slist *headers = NULL; in main() local
71 headers = curl_slist_append(headers, "Content-Type: literature/classic"); in main()
72 curl_easy_setopt(curl, CURLOPT_HTTPHEADER, headers); in main()
100 curl_slist_free_all(headers); in main()
H A Dsmtp-mime.c78 struct curl_slist *headers = NULL; in main() local
110 headers = curl_slist_append(headers, *cpp); in main()
111 curl_easy_setopt(curl, CURLOPT_HTTPHEADER, headers); in main()
151 curl_slist_free_all(headers); in main()
/curl/docs/libcurl/opts/
H A DCURLOPT_SUPPRESS_CONNECT_HEADERS.md18 CURLOPT_SUPPRESS_CONNECT_HEADERS - suppress proxy CONNECT response headers
31 suppress proxy CONNECT response headers from the user callback functions
34 Proxy CONNECT response headers can complicate header processing since it is
35 essentially a separate set of headers. You can enable this option to suppress
36 those headers.
39 success there would normally be two sets of headers, and each header line sent
45 {headers}
50 {headers}
57 However by enabling this option the CONNECT response headers are suppressed,
63 {headers}
H A DCURLOPT_HEADEROPT.md17 CURLOPT_HEADEROPT - send HTTP headers to both proxy and host or separately
29 Pass a long that is a bitmask of options of how to deal with headers. The two
32 **CURLHEADER_UNIFIED** - the headers specified in
37 **CURLHEADER_SEPARATE** - makes CURLOPT_HTTPHEADER(3) headers only get
38 sent to a server and not to a proxy. Proxy headers must be set with
40 is sent to a proxy, libcurl sends both server headers and proxy headers. When
41 doing CONNECT, libcurl sends CURLOPT_PROXYHEADER(3) headers only to the
42 proxy and then CURLOPT_HTTPHEADER(3) headers only to the server.
66 libcurl to not send the custom headers to the proxy. Keep them
H A DCURLOPT_HTTPHEADER.md23 CURLOPT_HTTPHEADER - set of HTTP headers
31 struct curl_slist *headers);
41 header list establishes the document-level MIME headers to prepend to the
51 this option you can add new headers, replace internal headers and remove
55 The headers included in the linked list **must not** be CRLF-terminated,
64 of headers only causes your request to send an invalid header. Use
74 The most commonly replaced HTTP headers have "shortcuts" in the options
84 Setting some specific headers causes libcurl to act differently.
101 headers can be set to override libcurl-generated values:
130 the headers. They may be private or otherwise sensitive to leak.
[all …]
H A DCURLOPT_TRAILERFUNCTION.md17 CURLOPT_TRAILERFUNCTION - callback for sending trailing headers
35 an HTTP chunked transfer to fill a list of trailing headers to be sent before
41 The trailing headers included in the linked list must not be CRLF-terminated,
45 If you use curl_slist_append(3) to add trailing headers to the *curl_slist*
89 struct curl_slist *headers = NULL;
90 headers = curl_slist_append(headers, "Trailer: My-super-awesome-trailer");
91 res = curl_easy_setopt(curl, CURLOPT_HTTPHEADER, headers);
101 curl_slist_free_all(headers);
H A DCURLOPT_HEADER.md21 CURLOPT_HEADER - pass headers to the data stream
33 Pass the long value *onoff* set to 1 to ask libcurl to include the headers
35 relevant for protocols that actually have headers or other meta-data (like
38 When asking to get the headers passed to the same callback as the body, it is
45 called with headers up to *CURL_MAX_HTTP_HEADER* bytes big (100KB).
51 custom HTTP headers!
H A DCURLMOPT_PUSHFUNCTION.md29 struct curl_pushheaders *headers,
56 *headers* is a handle used to access push headers using the accessor
58 headers, the normal response headers are provided in the header callback as
66 The callback can access PUSH_PROMISE headers with two accessor
68 can only access the PUSH_PROMISE headers: curl_pushheader_byname(3) and
69 curl_pushheader_bynum(3). The normal response headers are passed to the
111 struct curl_pushheaders *headers,
117 headp = curl_pushheader_byname(headers, ":path");
H A DCURLOPT_PROXYHEADER.md17 CURLOPT_PROXYHEADER - set of HTTP headers to pass to proxy
25 struct curl_slist *headers);
30 Pass a pointer to a linked list of HTTP headers to pass in your HTTP request
34 The headers set with this option is only ever used in requests sent to a proxy
39 following the request-line are headers. Adding this method line in this list
40 of headers causes your request to send an invalid header.
/curl/src/
H A Dtool_formparse.c647 *pheaders = headers; in get_param_part()
648 else if(headers) { in get_param_part()
766 part->headers = headers; in formparse()
767 headers = NULL; in formparse()
810 part->headers = headers; in formparse()
811 headers = NULL; in formparse()
847 part->headers = headers; in formparse()
848 headers = NULL; in formparse()
878 part->headers = headers; in formparse()
879 headers = NULL; in formparse()
[all …]
/curl/tests/data/
H A Dtest64633headers=X-test1: this is a header;type=text/html;headers=X-test2: this is another header " -F "=Th…
40 <file2 name="%LOGDIR/headers%TESTNUMBER">
H A Dtest12926 HTTP added headers
7 HTTP replaced headers
30 Replaced internal headers with a blank one
/curl/lib/
H A Dc-hyper.c343 hyper_headers *headers = NULL; in Curl_hyper_stream() local
465 headers = hyper_response_headers(resp); in Curl_hyper_stream()
466 if(!headers) { in Curl_hyper_stream()
780 hyper_headers *headers = NULL; in http1xx_cb() local
797 headers = hyper_response_headers(resp); in http1xx_cb()
798 if(!headers) { in http1xx_cb()
833 hyper_headers *headers = NULL; in Curl_http() local
990 headers = hyper_request_headers(req); in Curl_http()
991 if(!headers) { in Curl_http()
1112 result = cookies(data, conn, headers); in Curl_http()
[all …]
/curl/packages/OS400/rpg-examples/
H A DSMTPSRCMBR74 d headers s * inz(*NULL) Mail headers
85 headers = curl_slist_append_ccsid(headers: 'From: ' + sender_name +
88 headers = curl_slist_append_ccsid(headers: 'To: ' + recipient_name +
90 headers = curl_slist_append_ccsid(headers: 'Subject: An ILE/RPG ' +
92 headers = curl_slist_append_ccsid(headers: 'Date: ' + mail_date():
97 curl_easy_setopt(h: CURLOPT_HTTPHEADER: headers);
119 curl_slist_free_all(headers);

Completed in 108 milliseconds

12345678