{"id":351,"date":"2008-05-12T23:55:44","date_gmt":"2008-05-12T21:55:44","guid":{"rendered":"http:\/\/daniel.haxx.se\/blog\/?p=351"},"modified":"2008-05-13T23:50:22","modified_gmt":"2008-05-13T21:50:22","slug":"libcurl-sendrecv-functions","status":"publish","type":"post","link":"https:\/\/daniel.haxx.se\/blog\/2008\/05\/12\/libcurl-sendrecv-functions\/","title":{"rendered":"libcurl send\/recv functions"},"content":{"rendered":"<p><a title=\"libcurl!\" href=\"http:\/\/curl.haxx.se\/libcurl\/\"><img loading=\"lazy\" decoding=\"async\" class=\"alignleft alignnone size-full wp-image-108\" style=\"float: left; border: 0; margin: 10px;\" title=\"libcurl\" src=\"http:\/\/daniel.haxx.se\/blog\/wp-content\/uploads\/2007\/09\/ds-libcurlicon.png\" alt=\"\" width=\"99\" height=\"37\" \/><\/a>libcurl&#8217;s two newly added functions <a href=\"http:\/\/curl.haxx.se\/libcurl\/c\/curl_easy_send.html\">curl_easy_send()<\/a> and <a href=\"http:\/\/curl.haxx.se\/libcurl\/c\/curl_easy_recv.html\">curl_easy_recv()<\/a> add a new way of working with data in libcurl. These two are just sending and receiving <em>whatever<\/em> on a connection previously setup with <a href=\"http:\/\/curl.haxx.se\/libcurl\/c\/curl_easy_perform.html\">curl_easy_perform()<\/a> with the <a title=\"CURLOPT_CONNECT_ONLY\" href=\"http:\/\/curl.haxx.se\/libcurl\/c\/curl_easy_setopt.html#CURLOPTCONNECTONLY\">CONNECT_ONLY<\/a> option set.<\/p>\n<p>I haven&#8217;t yet made the web site display the man pages for these functions, as the patch for them was just committed minutes ago. <strong>Update: the man pages is now added and this post has the links.<\/strong><\/p>\n<p>Get a feel for how it can work by reading the <a href=\"http:\/\/cool.haxx.se\/cvs.cgi\/curl\/docs\/examples\/sendrecv.c?rev=1.1&amp;content-type=text\/vnd.viewcvs-markup\">sendrecv.c<\/a> example source.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>libcurl&#8217;s two newly added functions curl_easy_send() and curl_easy_recv() add a new way of working with data in libcurl. These two are just sending and receiving whatever on a connection previously setup with curl_easy_perform() with the CONNECT_ONLY option set. I haven&#8217;t yet made the web site display the man pages for these functions, as the patch &hellip; <a href=\"https:\/\/daniel.haxx.se\/blog\/2008\/05\/12\/libcurl-sendrecv-functions\/\" class=\"more-link\">Continue reading <span class=\"screen-reader-text\">libcurl send\/recv functions<\/span> <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":5,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[7],"tags":[33],"class_list":["post-351","post","type-post","status-publish","format-standard","hentry","category-curl","tag-curl-and-libcurl"],"_links":{"self":[{"href":"https:\/\/daniel.haxx.se\/blog\/wp-json\/wp\/v2\/posts\/351","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/daniel.haxx.se\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/daniel.haxx.se\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/daniel.haxx.se\/blog\/wp-json\/wp\/v2\/users\/5"}],"replies":[{"embeddable":true,"href":"https:\/\/daniel.haxx.se\/blog\/wp-json\/wp\/v2\/comments?post=351"}],"version-history":[{"count":0,"href":"https:\/\/daniel.haxx.se\/blog\/wp-json\/wp\/v2\/posts\/351\/revisions"}],"wp:attachment":[{"href":"https:\/\/daniel.haxx.se\/blog\/wp-json\/wp\/v2\/media?parent=351"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/daniel.haxx.se\/blog\/wp-json\/wp\/v2\/categories?post=351"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/daniel.haxx.se\/blog\/wp-json\/wp\/v2\/tags?post=351"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}