curl_perform_request   xtlang


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

Implementation

(bind-func curl_perform_request
  (lambda (handle cdat:curl_dat*)
    (let ((status (curl_easy_perform handle)))
        (if (<> status 0)
            (begin (printf "Error accessing URL: %s\n" (curl_easy_strerror status))
                   (tset! cdat 0 null)
                   (tset! cdat 1 0)
                   cdat)
            (begin
              (curl_easy_cleanup handle)
              ;; null-terminate the dat buffer
              (let ((ptr (tref cdat 0)))
                (pset! ptr (tref cdat 1) 0))
              cdat)))))


Back to Index

Similar Entries

  • curl    macro    /digego/extempore/tree/v0.8.9/libs/contrib/cas.xtm
  • curl_print_version    xtlang    /digego/extempore/tree/v0.8.9/libs/external/curl.xtm
  • curl_request    xtlang    /digego/extempore/tree/v0.8.9/libs/external/curl.xtm
  • curl_request_with_auth    xtlang    /digego/extempore/tree/v0.8.9/libs/external/curl.xtm
  • curl_request_with_header    xtlang    /digego/extempore/tree/v0.8.9/libs/external/curl.xtm
  • curl_setopts_authenticate    xtlang    /digego/extempore/tree/v0.8.9/libs/external/curl.xtm
  • curl_setopts_basic    xtlang    /digego/extempore/tree/v0.8.9/libs/external/curl.xtm
  • curl_setopts_header    xtlang    /digego/extempore/tree/v0.8.9/libs/external/curl.xtm
  • curl_setup    xtlang    /digego/extempore/tree/v0.8.9/libs/external/curl.xtm
  • curl_write_callback    xtlang    /digego/extempore/tree/v0.8.9/libs/external/curl.xtm
  • get_request_handler    xtlang    /digego/extempore/tree/v0.8.9/libs/external/cef/cef.xtm
  • ghttp_copy_request_body_into_buffer    xtlang    /digego/extempore/tree/v0.8.9/libs/external/ghttp.xtm
  • ghttp_perform_DELETE    xtlang    /digego/extempore/tree/v0.8.9/libs/external/ghttp.xtm
  • ghttp_perform_GET    xtlang    /digego/extempore/tree/v0.8.9/libs/external/ghttp.xtm
  • ghttp_perform_POST_default    xtlang    /digego/extempore/tree/v0.8.9/libs/external/ghttp.xtm
  • ghttp_perform_POST_json    xtlang    /digego/extempore/tree/v0.8.9/libs/external/ghttp.xtm
  • ghttp_perform_POST_string    xtlang    /digego/extempore/tree/v0.8.9/libs/external/ghttp.xtm
  • ghttp_perform_PUT_default    xtlang    /digego/extempore/tree/v0.8.9/libs/external/ghttp.xtm
  • ghttp_perform_PUT_json    xtlang    /digego/extempore/tree/v0.8.9/libs/external/ghttp.xtm
  • ghttp_perform_PUT_string    xtlang    /digego/extempore/tree/v0.8.9/libs/external/ghttp.xtm
  • ghttp_perform_request_with_setup_fn    xtlang    /digego/extempore/tree/v0.8.9/libs/external/ghttp.xtm
  • ghttp_print_request_body    xtlang    /digego/extempore/tree/v0.8.9/libs/external/ghttp.xtm
  • ghttp_print_request_full    xtlang    /digego/extempore/tree/v0.8.9/libs/external/ghttp.xtm
  • ghttp_print_request_headers    xtlang    /digego/extempore/tree/v0.8.9/libs/external/ghttp.xtm
  • ghttp_request_body_as_json    xtlang    /digego/extempore/tree/v0.8.9/libs/external/ghttp.xtm
  • request    xtlang    /digego/extempore/tree/v0.8.9/examples/contrib/nanomsg.xtm
  • send_request    xtlang    /digego/extempore/tree/v0.8.9/examples/contrib/nanomsg-request.xtm
  • set_up_request_socket    xtlang    /digego/extempore/tree/v0.8.9/examples/contrib/nanomsg.xtm