Skip to content

Prevent redirects #82

@uzhas-sovka

Description

@uzhas-sovka

How can I prevent redirects?
httpConfigRedirectCount = 1 -- single redirect, OK.
httpConfigRedirectCount = 0 -- zero redirects and Exception.
Can I ban redirects and avoid exception?..

My goal is to get "Location" header, it's present in response to first request. http-client reportedly holds all history of redirects, but it's strange to make 5 requests consequently with Req and the last with other tool.


Mark, thanks for your library, I managed to get it working. "Get it working" means not the quality of library, it's beyond questions, but the lack of my Haskell skills.

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions