This commit is contained in:
2024-06-29 18:10:47 +03:00
parent 6bc1db5cde
commit 3aad3b5f75
2 changed files with 62 additions and 9 deletions
+7 -2
View File
@@ -39,13 +39,18 @@
(define curl-code1 (curl-easy-setopt handle CURLOPT-FOLLOWLOCATION url))
(define curl-code2 (curl-easy-setopt handle CURLOPT-URL url))
(define curl-code3 (curl-easy-setopt-callback handle CURLOPT-WRITEFUNCTION collect-result))
(display "Curl code 1: ")
(display curl-code1)
(newline)
(display "Curl code 2: ")
(display curl-code2)
(newline)
(display "Curl code 3: ")
(display curl-code3)
(newline)
(curl-easy-perform handle)
(display "Perform: ")
(write (curl-easy-perform handle))
(newline)
(display "Response length: ")
(display (string-length result))
(newline)