Questions tagged [http-conduit]

A haskell HTTP client library using conduits

http-conduit is a Haskell HTTP client library using conduit for parsing the HTTP protocol.

78 questions
1
vote
1 answer

Haskell data, custom string values

I am writing a Haskell SDK, I have everything working however I'm wanting to introduce stronger types to my search filters (url parameters). A sample call looks like: -- list first 3 positive comments mentioned by females comments "tide-pods"…
Kenny Cason
  • 12,109
  • 11
  • 47
  • 72
1
vote
2 answers

Haskell simpleHTTP of Network.HTTP.Conduit performing slowly for get requests

In my haskell code I've imported Network.HTTP.Conduit as import Network.HTTP.Conduit In my main function I make a simple GET request using simpleHTTP main = do response <- simpleHttp "https://github.com/trending?l=ruby" return () It took…
user2512324
  • 791
  • 1
  • 6
  • 21
1
vote
1 answer

Cabal install http-conduit-browser

It's possible this is such a struggle because I'm on Windows... My latest attempt to get out of Cabal Hell, using the Git Bash: $ rm -R ~/AppData/Roaming/ghc ~/AppData/Roaming/cabal $ cabal update $ cabal install cabal-install $ cabal install…
TheCriticalImperitive
  • 1,457
  • 1
  • 10
  • 23
1
vote
0 answers

Failed to install http-conduit-1.9.6

I'm trying to install http-conduit-1.9.6, and running cabal install http-conduit-1.9.6 gives me the following error: Network/HTTP/Conduit/Request.hs:43:8: Could not find module `Network.URI' It is a member of the hidden package…
Oscar
  • 11
  • 1
1
vote
1 answer

Handling 404 via Maybe in http-conduit

Using http-conduit I want to download a HTTP URL implementing the following semantics (resulting in IO (Maybe LB.ByteString) ): If the HTTP response code is 2xx, return Just the response body If the HTTP response code is 404, return Nothing If the…
Uli Köhler
  • 13,012
  • 16
  • 70
  • 120
1
vote
1 answer

Haskell, Posting Values to Webpage

I'm trying to figure out how to perform GET's and POST's to websites in Haskell, and I seem to be having difficulty even figuring out how to do a simple POST. I'm sure this is a GET. import Network.HTTP.Conduit import Data.Conduit import…
1
vote
2 answers

Unable to connect SSL webservice with cxf http-conduit

I am trying to connect to a SOAP webservice and need to provide a cert for authentication. I am currently using the cxf http conduit to locate my certificate. I received a p12 file from the service I am wanting to call. I have imported the p12…
franzke
  • 517
  • 1
  • 6
  • 18
1
vote
1 answer

Exception POSTing multipart form with http-conduit

I'm trying to POST a multipart form request to an internal website which should reply with an XML response. Using another simple script I have in Python with the requests library, everything works fine, however, using http-conduit I keep receiving…
Adam
  • 89
  • 1
  • 2
  • 8
1
vote
1 answer

How do i find the current version of yesod on fpcomplete site

I would like some more information than just that, but the yesod version number (including minor version) would be a start. I am noticing that my datamodel file is taking too long to compile (minutes) quite often. In order to understand the…
dganti
  • 305
  • 2
  • 11
1
vote
1 answer

Converting Haskell's WAI Request to Network.HTTP.Conduit Request

I'm writing a server and I need to forward along a certain Request message. This message is basically either a POST (or GET) message, possibly containing a file of a few megabytes. This message is forwarded to another server that actually stores…
Victor
  • 584
  • 4
  • 16
0
votes
1 answer

Set Http Conduit timeout dynamically

I am facing an issue where I need to set timeout for one particular webservice to a value other than the default value for all other services. Now I need to find a way where I can somehow programmatically override the http Conduit timeout for my…
0
votes
1 answer

Build request with IP address

I would like to know how to build a request with server's IP address (not URL). Actually I start with a given URL and then with the help of lenses rebuild the request: connect = do request' <- parseRequest "http://localhost" let…
user3680029
  • 179
  • 8
0
votes
1 answer

Error during https call through proxy using CXF

In camel-cxf I have to call a SOAP webservice (exposed in https) through a proxy: configuring the http conduit as follows public void configureClient(Client client) { String proxySrv = Util.getProperty(Constants.Config.PROXY_SRV); …
GSX
  • 63
  • 7
0
votes
1 answer

get RequestBody in httpclient

I want to use Haskell send request to Amazon hosted elasticsearch server either using bloodhound or REST api directly. Since the server has IAM based access policy, I need sign the signature. In order to sign the signature for every single request,…
Yuan Wang
  • 479
  • 2
  • 13
0
votes
1 answer

Haskell Type Error while using HTTP-Conduit

I am working on OAuth2 authentication for a Yesod application and I am having a type error that I really really don't understand. The code is broken at the moment, and I have a few :: IO ()'s and undefineds thrown around to help me isolate the…
nomen
  • 3,626
  • 2
  • 23
  • 40