Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How can I do an HTTPS request in Haskell?

Tags:

How can I do an HTTPS request in Haskell?

For example, I want to obtain a request token via HTTPS POST from Dropbox API

P.S.: I am using Windows 8

like image 819
Andriy Drozdyuk Avatar asked Apr 03 '12 02:04

Andriy Drozdyuk


1 Answers

Thanks to packages like http-conduit, which is backed by tls, you can use simpleHttp for HTTPS.

> import Network.HTTP.Conduit > simpleHttp "https://github.com" ...  big ugly bytestring that can be parsed in so many ways... 
like image 76
Thomas M. DuBuisson Avatar answered Oct 11 '22 21:10

Thomas M. DuBuisson