Skip to content
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

http code 303 and 301 error #5

Open
salar-soltanpoor opened this issue May 5, 2022 · 3 comments
Open

http code 303 and 301 error #5

salar-soltanpoor opened this issue May 5, 2022 · 3 comments

Comments

@salar-soltanpoor
Copy link

i used this code with this link which i uploaded my firmware file to it
https://drive.google.com/uc?id=1CGPNlpRMR9VKpC6HS3vWJtr4JCS6gB6Q&export=download the esp32 can connect to wifi but the response code is not equal to 200. when i use https header it gives 303 response and when i use http header it gives 301 response.i know that both of them are related to redirections. i tried using this line for automatic redirection but it didn't work client.setFollowRedirects(HTTPC_STRICT_FOLLOW_REDIRECTS);
it gives response -1

@CommanderRedYT
Copy link

I assume the Google drive link is public, because otherwise you would need to implement authentication. If so, I would download the file in the browser, right click on it and click "Copy URL" or whatever it says there. If it's not an generated URL (that could expire), just use that!

Alternative to that would be to use something other than google Drive, for example your server

@SmeatsBeats
Copy link

I'm having the same issue using AWS S3 bucket to host the files. Any updates on this? thanks

@salar-soltanpoor
Copy link
Author

I'm having the same issue using AWS S3 bucket to host the files. Any updates on this? thanks

hi sorry for the late answer I just saw your comment in my email now ! I used this free Persian site [1]((https://uupload.ir/) it solved my problem. you can use google translate if you don't know the language .

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

3 participants