Skip to content

Handeling 3xx Redirection error #9

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
anmolgkv opened this issue Jan 20, 2020 · 1 comment
Open

Handeling 3xx Redirection error #9

anmolgkv opened this issue Jan 20, 2020 · 1 comment

Comments

@anmolgkv
Copy link

I am trying to consume an API which returns 303 status code and redirect location.

In ffhttp_Client.AbstractClientRequest.executeUnparsed() method the code checks for status code between 300 and 400 and throws exception with message

3xx Redirection error which is currently unhandled

With this behavior response along with its header is lost.

The two solutions in the current approach are

  1. override handleRedirection() method and throw an exception with redirect URI or do nothing in the overridden method (A dirty fix)
  2. Implement IAbstractClientRequest interface and implement all the methods(Lot of redundant code)

Is there a better way to handle this? maybe make executeUnparsed() method virtual?

@rsoesemann
Copy link

@dfruddffdc could you please have a look at this question of my team?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants