[racket] racket and libcURL

From: John Clements (clements at brinckerhoff.org)
Date: Wed Mar 21 17:50:38 EDT 2012

On Mar 21, 2012, at 11:00 AM, Ray Racine wrote:

> I have an HTTPClient library that works for GET, PUT, POST for most use cases where one would use an embedding of a wrapped curl.  
> It understands chunked encoding and "pipes" the de-chunked HTTP stream to a port automatically  So for example, you can do a GET of a large file and stream it to disc without reading the entire file into a byte buffer.  It also works with HTTPS as well.
> Bad news it is still in unpolished at the API level, with limited scribblings for doc.  But I use it quite heavily for AWS REST API integration, web scrapping runs of several hours in duration and it is stable and reasonably fast.  
> https://github.com/RayRacine/racketlib/tree/master/httpclient

Wait… don't Racket's built-in libraries already handle all of those cases?

This is not a rhetorical question: I'm perfectly happy to be wrong, here, but it looks like I can use get-pure-port or post-pure-port to handle these. I guess I assumed that the original poster wanted something that Racket didn't already include, but I could be wrong: 

Yvan, what's your use case look like? Are there things you want to do that, for instance, get-impure-port doesn't already do?


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.racket-lang.org/users/archive/attachments/20120321/bc1bfd80/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/pkcs7-signature
Size: 4624 bytes
Desc: not available
URL: <http://lists.racket-lang.org/users/archive/attachments/20120321/bc1bfd80/attachment.p7s>

Posted on the users mailing list.