/* Remove a header curl would otherwise add by itself */
chunk = curl_slist_append(chunk, "Accept:");

/* Add a custom header */
chunk = curl_slist_append(chunk, "Another: yes");

/* Modify a header curl otherwise adds differently */
chunk = curl_slist_append(chunk, "Host: example.com");

/* Add a header with "blank" contents to the right of the colon. Note that
   we're then using a semicolon in the string we pass to curl! */
chunk = curl_slist_append(chunk, "X-silly-header;");


curl_slist_append example

arrow
arrow
    全站熱搜

    JohnDX 發表在 痞客邦 留言(0) 人氣()