I am trying to clear data from a site using HTTPS. I was able to complete basic requests using Network.HTTP.Conduit successfully (placing credentials, etc.), but was unable to extract cookie information from the response headers (Set-Cookie). It seems that http-conduit has its own mechanism for processing cookies, which I did not understand.
Network.HTTP.Conduit.Browser seems to process cookies automatically (this is good for me), but I could not get it to work due to lack of documentation .
Can anyone with a lot of experience with the http-conduit browser module show me how:
- Work with self-signed certificates (I managed to do this with managerCheckCerts in the base module)
- Send a POST request with URL-encoded parameters in the body, without following any redirects (I used urlEncodedBody from the base module for this)
- Use the cookie from step 2. in a simple GET request and read the answer as (lazy) ByteString (I would use httpLbs for this)
It seems to me that the abstraction level of Network.HTTP.Conduit.Browser is more suitable for my application compared to Network.HTTP.Conduit, so I would like to make a switch, even if I could handle cookies manually using the latter.
akosch
source share