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

sendInitialHeaders breaks session #137

Open
purplehorace opened this issue Aug 2, 2022 · 0 comments
Open

sendInitialHeaders breaks session #137

purplehorace opened this issue Aug 2, 2022 · 0 comments
Labels
topic: code Related to content of the project itself type: imperfection Perceived defect in any part of project

Comments

@purplehorace
Copy link

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.

@per1234 per1234 added type: imperfection Perceived defect in any part of project topic: code Related to content of the project itself labels Aug 2, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
topic: code Related to content of the project itself type: imperfection Perceived defect in any part of project
Projects
None yet
Development

No branches or pull requests

2 participants