[Haskell-beginners] Network.Curl POST body not showing up

Michael Xavier nemesisdesign at gmail.com
Thu May 12 04:48:43 CEST 2011


I've tried 3 different HTTP libraries for this project: Network.HTTP (which
doesn't support SSL), Network.Curl, and http-enumerator. This project
requires SSL, HTTP Basic Auth and Post. Network.HTTP does not support SSL
and http-enumerator does not support HTTP basic authentication. The
maintainer said he'd welcome a patch to it but I don't really have the time
or skill at this stage to implement something like that.

So I'm stuck with trying to coerce curl into doing what I need it to do.
Hopefully someone on this list has been able to successfully POST a string
body with Network.Curl

On Wed, May 11, 2011 at 6:07 PM, Erik de Castro Lopo
<mle+hs at mega-nerd.com>wrote:

> Bryce Verdier wrote:
>
> > I would be interested in this as well. I'm trying to use Network.Curl
> > for a personal project, also using a method_post, and am not able to get
> > a response. Though I know it's connecting.
> >
> > I _think_ that I need to use CurlWriteFunction, but I'm still new to
> > Haskell & not sure how to work with that option.
>
> I tried a number of times to do things with Network.Curl and found
> it to be a painful and frustrating experience. The API is highly
> irregular and often remains too close to the underlying C API.
>
> More recently I've been using the http-enumerator package which
> is conceptually a little more complicated but works really,
> really well. It does both HTTP and HTTPS, GET and POST. It
> currently doesn't work via a proxy, but the http-enumerator
> author has said he will take patches and I'm working on it.
>
> Cheers,
> Erik
> --
> ----------------------------------------------------------------------
> Erik de Castro Lopo
> http://www.mega-nerd.com/
>
> _______________________________________________
> Beginners mailing list
> Beginners at haskell.org
> http://www.haskell.org/mailman/listinfo/beginners
>



-- 
Michael Xavier
http://www.michaelxavier.net
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.haskell.org/pipermail/beginners/attachments/20110511/20634493/attachment.htm>


More information about the Beginners mailing list