Hi, Erik,

Did you try Network.HTTP? Is it not enough?

2009/8/12 Erik de Castro Lopo <mle+hs@mega-nerd.com>
Hi all,

I need to do a HTTP post of XML data (Content-type == "text/xml") to
a HTTP (eventually HTTPS) server and to retrieve both the response
code and some returned XML data.

I have had an extensive read of the haskell-curl docs:

   http://hackage.haskell.org/packages/archive/curl/1.3.5/doc/html/Network-Curl.html

as well as playing around with some code, but haskell-curl doesn't
seem to support this. I've tried curlPost which along with not
returning a response also insists on encoding my XML data as
application/x-www-form-urlencoded which simply doesn't work.

Anyone ben able to get something like this to work? Are there any
alternatives to haskell-curl which will work for my application?

Cheers,
Erik
--
----------------------------------------------------------------------
Erik de Castro Lopo
http://www.mega-nerd.com/
_______________________________________________
Haskell-Cafe mailing list
Haskell-Cafe@haskell.org
http://www.haskell.org/mailman/listinfo/haskell-cafe