-
Notifications
You must be signed in to change notification settings - Fork 15
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
Should handle 301 redirection #15
Comments
Can you try again with the latest version? @stephanepechard ripped out the old http client and the new one seems to follow redirects automatically. But maybe, because we are using a POST, that will not trigger a redirect. On the other hand, following redirects is not very efficient, as the Photo would be uploaded twice every single time... |
OkHttp is not that great in handling 30X status. I have to work on it a bit. |
Please try with the latest 0.9.0 version. As @zealot128 said, I modified the upload library, this one should handle redirection more properly. As for myself, it redirects correctly from a http:// to a https:// address. |
It may handle redirection more properly, but I just can't get through the test step :( |
Would you allow me to test your configuration? I would need the URL and the associated password. You can send it by mail or any other way of your convenience. |
Sorry, but that's not possible. It is a standard installation and the URL is protected by basic http auth. When I use the android client 0.9, the web server log shows a 401 HTTP code with an empty HTTP authentication login |
Ok, I will check on your Auth problem. I already looked at redirection and it should be covered, at least it works for me on http => https redirection (307 though, not 301 as it alters the request). |
Redirections should be honored and followed. It rewrites the server url and persists the new one.
Please try v0.10.0 which tries to honor redirections |
Should be ok now |
When configured with a path not ending with a slash , eg: example.com/photobackup , my server response is a redirection to example.com/photobackup/
The expected response from the client should be to resend the request to the redirected url, but it does not.
The text was updated successfully, but these errors were encountered: