Skip to content

sendInitialHeaders breaks session #137

Open
@purplehorace

Description

@purplehorace

We have been trying to test a connection with our server to POST some data.

We are using https so initialising the library with using WiFISecureClient and ssl cert and setting port to 443 as you would expect for https.

The connection has been failing consistently and digging into the source to find the issue we have discovered that the check:

           if (iServerPort != kHttpPort)
           {
              iClient->print(":");
              iClient->print(iServerPort);
           }

causes the port to be appended to tje Host header.
Control needs to be added to be able to suppress this as it can cause issues with some proxy setups.
Or facility needs to be added to initialise kHttpPort so it can match the iServerPort.

Activity

added
type: imperfectionPerceived defect in any part of project
topic: codeRelated to content of the project itself
on Aug 2, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    topic: codeRelated to content of the project itselftype: imperfectionPerceived defect in any part of project

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

      Development

      No branches or pull requests

        Participants

        @purplehorace@per1234

        Issue actions

          sendInitialHeaders breaks session · Issue #137 · arduino-libraries/ArduinoHttpClient