mirror of
https://github.com/curl/curl.git
synced 2025-03-01 15:15:34 +08:00
curl_easy_nextheader.3: add missing open parenthesis examples
Closes #11409 Signed-off-by: Juan Cruz Viotti <jv@jviotti.com>
This commit is contained in:
parent
356208c16f
commit
2e0bad3f18
@ -73,14 +73,14 @@ struct curl_header *h;
|
|||||||
|
|
||||||
/* extract the normal headers from the first request */
|
/* extract the normal headers from the first request */
|
||||||
while((h = curl_easy_nextheader(easy, CURLH_HEADER, 0, prev))) {
|
while((h = curl_easy_nextheader(easy, CURLH_HEADER, 0, prev))) {
|
||||||
print "%s: %s\\n", h->name, h->value);
|
printf("%s: %s\\n", h->name, h->value);
|
||||||
prev = h;
|
prev = h;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* extract the normal headers + 1xx + trailers from the last request */
|
/* extract the normal headers + 1xx + trailers from the last request */
|
||||||
unsigned int origin = CURLH_HEADER| CURLH_1XX | CURLH_TRAILER;
|
unsigned int origin = CURLH_HEADER| CURLH_1XX | CURLH_TRAILER;
|
||||||
while((h = curl_easy_nextheader(easy, origin, -1, prev))) {
|
while((h = curl_easy_nextheader(easy, origin, -1, prev))) {
|
||||||
print "%s: %s\\n", h->name, h->value);
|
printf("%s: %s\\n", h->name, h->value);
|
||||||
prev = h;
|
prev = h;
|
||||||
}
|
}
|
||||||
.fi
|
.fi
|
||||||
|
Loading…
Reference in New Issue
Block a user