CURLcode curl_easy_perform_ev(CURL *easy);
#endif
-#define CURLseparator "--_curl_--"
-
#ifndef O_BINARY
/* since O_BINARY as used in bitmasks, setting it to zero makes it usable in
source code but yet it doesn't ruin anything */
struct_stat fileinfo;
CURLcode result = CURLE_OK;
- if(per->separator_err)
- fprintf(global->errors, "%s\n", per->separator_err);
- if(per->separator)
- printf("%s\n", per->separator);
-
if(per->uploadfile && !stdin_upload(per->uploadfile)) {
/* VMS Note:
*
if(outs->alloc_filename)
free(outs->filename);
free(per->this_url);
- free(per->separator_err);
- free(per->separator);
free(per->outfile);
free(per->uploadfile);
}
{
- int separator;
unsigned long urlnum;
if(!state->up && !infiles)
else
urlnum = state->urlnum;
- /* if multiple files extracted to stdout, insert separators! */
- separator = ((!state->outfiles ||
- !strcmp(state->outfiles, "-")) && urlnum > 1);
-
if(state->up < state->infilenum) {
struct per_transfer *per = NULL;
struct OutStruct *outs;
global->isatty = orig_isatty;
}
- if(urlnum > 1 && !global->mute) {
- per->separator_err =
- aprintf("\n[%lu/%lu]: %s --> %s",
- state->li + 1, urlnum, per->this_url,
- per->outfile ? per->outfile : "<stdout>");
- if(separator)
- per->separator = aprintf("%s%s", CURLseparator, per->this_url);
- }
if(httpgetfields) {
char *urlbuffer;
/* Find out whether the url contains a file name */
* | (__| |_| | _ <| |___
* \___|\___/|_| \_\_____|
*
- * Copyright (C) 1998 - 2021, Daniel Stenberg, <daniel@haxx.se>, et al.
+ * Copyright (C) 1998 - 2022, Daniel Stenberg, <daniel@haxx.se>, et al.
*
* This software is licensed as described in the file COPYING, which
* you should have received as part of this distribution. The terms
bool ultotal_added;
/* NULL or malloced */
- char *separator_err;
- char *separator;
char *uploadfile;
};
\r
</protocol>
<stdout>
---_curl_--%HOSTIP:%HTTPPORT/%TESTNUMBER0001
HTTP/1.1 200 OK\r
Funny-head: yesyes\r
Content-Length: 15\r
\r
the number one
---_curl_--%HOSTIP:%HTTPPORT/%TESTNUMBER0002
HTTP/1.1 200 OK\r
Funny-head: yesyes\r
Content-Length: 16\r
\r
two is nice too
---_curl_--%HOSTIP:%HTTPPORT/%TESTNUMBER0001
HTTP/1.1 200 OK\r
Funny-head: yesyes\r
Content-Length: 15\r
\r
the number one
---_curl_--%HOSTIP:%HTTPPORT/%TESTNUMBER0002
HTTP/1.1 200 OK\r
Funny-head: yesyes\r
Content-Length: 16\r