Welcome to the CHICKEN Scheme pasting service

http-client https request added by gahr on Sat Sep 5 22:43:03 2026

(import (chicken base) (chicken io) (http-client))
(define (handle in) (print (read-string 100 in)))
(call-with-input-request "https://example.com" #f handle)

chicken-csi -s test-download.scm

Error: bad argument count - received 3 but expected 4: #<procedure (a3271 port size buf offset)>

        Call history:

        http-client.scm:600: uri-common#uri-path
        http-client.scm:600: srfi-1#member
        http-client.scm:602: uri-common#update-uri
        http-client.scm:603: intarweb#update-request
        http-client.scm:603: intarweb#write-request
        http-client.scm:611: writer
        http-client.scm:612: intarweb#request-port
        http-client.scm:612: chicken.base#flush-output
        http-client.scm:614: intarweb#keep-alive?
        http-client.scm:617: intarweb#read-response
        http-client.scm:577: k756
        http-client.scm:575: g759
        http-client.scm:709: close-connection!
        http-client.scm:220: scheme#close-input-port
        http-client.scm:221: scheme#close-output-port
        http-client.scm:710: srfi-18#raise              <--

Your annotation:

Enter a new annotation:

Your nick:
The title of your paste:
Your paste (mandatory) :
What module provides regular expressions support?
Visually impaired? Let me spell it for you (wav file) download WAV