curl_setopts_basic   xtlang


Defined in:  https://github.com/digego/extempore/tree/v0.8.9/libs/external/curl.xtm

Implementation

(bind-func curl_setopts_basic
  (lambda (handle cdat:curl_dat*)
    (curl_easy_setopt handle
                      CURLOPT_WRITEFUNCTION
                      (get_native_fptr curl_write_callback))
    (curl_easy_setopt handle CURLOPT_WRITEDATA (cast cdat i8*))
    ;; follow redirects = TRUE
    (let ((followopt:CURLoption* (salloc)))
      (pset! followopt 0 1)
      (curl_easy_setopt handle CURLOPT_FOLLOWLOCATION (cast followopt i8*)))
    ;; user agent string
    (curl_easy_setopt handle CURLOPT_USERAGENT (curl_version))))


Back to Index

Similar Entries

  • basic_note    xtlang
  • curl    macro
  • curl_perform_request    xtlang
  • curl_print_version    xtlang
  • curl_request    xtlang
  • curl_request_with_auth    xtlang
  • curl_request_with_header    xtlang
  • curl_setopts_authenticate    xtlang
  • curl_setopts_header    xtlang
  • curl_setup    xtlang
  • curl_write_callback    xtlang
  • world_basic_print    xtlang