mirror of
https://github.com/curl/curl.git
synced 2026-07-27 20:53:18 +03: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
1 changed files with 2 additions and 2 deletions
|
|
@ -73,14 +73,14 @@ struct curl_header *h;
|
|||
|
||||
/* extract the normal headers from the first request */
|
||||
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;
|
||||
}
|
||||
|
||||
/* extract the normal headers + 1xx + trailers from the last request */
|
||||
unsigned int origin = CURLH_HEADER| CURLH_1XX | CURLH_TRAILER;
|
||||
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;
|
||||
}
|
||||
.fi
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue