Skip to content

httpUpdate.update & a url with parameters #4764

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

Closed
pavluchenkor opened this issue Feb 2, 2021 · 3 comments
Closed

httpUpdate.update & a url with parameters #4764

pavluchenkor opened this issue Feb 2, 2021 · 3 comments
Labels
Status: Stale Issue is stale stage (outdated/stuck)

Comments

@pavluchenkor
Copy link

I use update in two ways

  1. String server_FW = "https://my_domain.com/update/firmware.bin";
  2. String server_FW = "https://my_domain.com/update?controller=" + controller_type + "&ver=" + version + "&type=firmware" + "&t=" + time_now + "&key=" + md5_key(key);
    (the line is something like this https://my_domain.com/update?controller=xzxzxz&ver=210130&type=firmware&t=1612223376&key=53acbd18db4cc2f85cedef654fccc4a4d8)

t_httpUpdate_return ret = httpUpdate.update(client, server_FW);

In the first case I get the update with no problem, in the second I get the error
[E][HTTPUpdate.cpp:358] handleUpdate(): HTTP Code is (301)

At the same time, in the second case, my request does not even reach the server (I record each call to the PHP script in a separate file) What could be the reason?

@cpainchaud
Copy link

Hi it was probably due to the redirect and should be fixed now
#4931

@stale
Copy link

stale bot commented Jun 18, 2021

[STALE_SET] This issue has been automatically marked as stale because it has not had recent activity. It will be closed in 14 days if no further activity occurs. Thank you for your contributions.

@stale stale bot added the Status: Stale Issue is stale stage (outdated/stuck) label Jun 18, 2021
@stale
Copy link

stale bot commented Jul 11, 2021

[STALE_DEL] This stale issue has been automatically closed. Thank you for your contributions.

@stale stale bot closed this as completed Jul 11, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Status: Stale Issue is stale stage (outdated/stuck)
Projects
None yet
Development

No branches or pull requests

2 participants