-
-
Notifications
You must be signed in to change notification settings - Fork 1.5k
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
DioError [DioErrorType.RESPONSE]: Http status error [302] #265
Comments
302 is the status code for a redirect. |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. If this is still an issue, please make sure it is up to date and if so, add a comment that this is still an issue to keep it open. Thank you for your contributions. |
i have a same question too |
I have the same concern as @zaubererty regarding cookies. Dio makes a |
Add followRedirects: false and validateStatus: (status) { return status < 500;} to the request var response = await Dio().post("http://myurl", Source https://stackoverflow.com/questions/52537500/flutter-handle-status-code-302-in-post-request |
Thanks @alfawzaan |
add header with |
use dio.request can solve this problem |
Hello, how did you do this? |
Did Someone Finally Found the solution? tried all the possible way that mentioned earlier but not working. |
hi !
when im using dio post,
the post was successfull and the data was saved on the db.
but i check the logs, and got error code
here's my code
note :
post was success but logs show 302.
how to resolve 302 code?
The text was updated successfully, but these errors were encountered: