mirror of
https://github.com/curl/curl.git
synced 2026-08-25 16:43:39 +03:00
parent
7a1e99eefa
commit
0476e4fc65
149 changed files with 1381 additions and 1376 deletions
|
|
@ -35,8 +35,8 @@ static size_t write_cb(char *b, size_t size, size_t nitems, void *p)
|
|||
size_t i;
|
||||
unsigned int blen = (unsigned int)(nitems * size);
|
||||
const struct curl_ws_frame *frame = curl_ws_meta(curl);
|
||||
fprintf(stderr, "Type: %s\n", frame->flags & CURLWS_BINARY ?
|
||||
"binary" : "text");
|
||||
fprintf(stderr, "Type: %s\n",
|
||||
frame->flags & CURLWS_BINARY ? "binary" : "text");
|
||||
if(frame->flags & CURLWS_BINARY) {
|
||||
fprintf(stderr, "Bytes: %u", blen);
|
||||
for(i = 0; i < nitems; i++)
|
||||
|
|
@ -111,7 +111,6 @@ int main(int argc, const char *argv[])
|
|||
curl_easy_setopt(curl, CURLOPT_READDATA, &rctx);
|
||||
curl_easy_setopt(curl, CURLOPT_UPLOAD, 1L);
|
||||
|
||||
|
||||
/* Perform the request, res gets the return code */
|
||||
res = curl_easy_perform(curl);
|
||||
/* Check for errors */
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue