8000 httpUpdate.update & a url with parameters · Issue #4764 · espressif/arduino-esp32 · GitHub
[go: up one dir, main page]

Skip to content
httpUpdate.update & a url with parameters #4764
Closed
@pavluchenkor

Description

@pavluchenkor

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?

Metadata

Metadata

Assignees

No one assigned

    Labels

    Status: StaleIssue is stale stage (outdated/stuck)

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      0