curl_request_with_header   xtlang


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

Implementation

(bind-func curl_request_with_header
  (let ((handle:CURL null)
        (cdat:curl_dat* (zalloc)))
    (lambda (url:i8* dat:i8* header:i8*)
      ;; init data structures
      (set! handle (curl_easy_init))
      (tset! cdat 0 dat)
      (tset! cdat 1 0)
      (curl_easy_setopt handle CURLOPT_URL url)
      (curl_setopts_basic handle cdat)
      (let ((header_slist (curl_setopts_header handle header)))
        (curl_perform_request handle cdat)
        (curl_slist_free_all header_slist))
      cdat)))


Back to Index

Similar Entries

  • FBO_create_with_textures    xtlang
  • Widget_with_cb    xtlang
  • bindfunc_with_docstring    xtlang
  • bindfunc_with_zone_size    xtlang
  • bindfunc_with_zone_size_and_docstring    xtlang
  • call-with-input-file    scheme
  • call-with-output-file    scheme
  • curl    macro
  • curl_perform_request    xtlang
  • curl_print_version    xtlang
  • curl_request    xtlang
  • curl_request_with_auth    xtlang
  • curl_setopts_authenticate    xtlang
  • curl_setopts_basic    xtlang
  • curl_setopts_header    xtlang
  • curl_setup    xtlang
  • curl_write_callback    xtlang
  • define-with-return    macro
  • draw_color_body_frame_with_hands    xtlang
  • fill_buffer_with_file    xtlang
  • get_request_handler    xtlang
  • ghttp_copy_request_body_into_buffer    xtlang
  • ghttp_perform_request_with_setup_fn    xtlang
  • ghttp_print_request_body    xtlang
  • ghttp_print_request_full    xtlang
  • ghttp_print_request_headers    xtlang
  • ghttp_request_body_as_json    xtlang
  • gl_print_error_with_msg    xtlang
  • gui_find_widget_with_id    xtlang
  • impc:aot:insert-header    scheme
  • impc:compiler:print-bad-type-error-with-ast    scheme
  • impc:ir:compiler:heap-alloc-with-size    scheme
  • impc:ir:compiler:heap-alloc-without-size    scheme
  • impc:ir:compiler:stack-alloc-with-size    scheme
  • impc:ir:compiler:stack-alloc-without-size    scheme
  • impc:ir:compiler:zone-alloc-with-size    scheme
  • impc:ir:compiler:zone-alloc-without-size    scheme
  • impc:ti:initialize-closure-with-new-zone    scheme
  • ipc:proc-name-with-mapping    scheme
  • make-list-with-proc    scheme
  • make-vector-with-proc    scheme
  • pm_device_with_id    xtlang
  • pm_input_device_with_name    xtlang
  • pm_output_device_with_name    xtlang
  • print-with-colors    macro
  • qr_create_with_level    xtlang
  • request    xtlang
  • return_ptr_gv_first_with_docstring    xtlang
  • return_ptr_gv_second_with_docstring    xtlang
  • send_request    xtlang
  • set_cairo_source_with_colour    xtlang
  • set_up_request_socket    xtlang
  • sys:with-noisy-compiler    macro
  • sys:with-quiet-compiler    macro
  • thread_native_call_with_zone    xtlang
  • unzip1-with-cdr    scheme
  • unzip1-with-cdr-iterative    scheme
  • with-input-from-file    scheme
  • with-input-output-from-to-files    scheme
  • with-output-to-file    scheme
  • xtmtest-with-fixture    macro
  • xtmtest-with-fixture-body    scheme
  • xtmtest-with-fixture-body    scheme