mirror of
https://github.com/arduino-libraries/ArduinoHttpClient.git
synced 2025-04-19 21:22:15 +03:00
Merge pull request #161 from kodav/Add-443-port-for-HTTPS-requests
Add 443 port for https requests
This commit is contained in:
commit
9ddfad1977
@ -162,7 +162,7 @@ int HttpClient::sendInitialHeaders(const char* aURLPath, const char* aHttpMethod
|
||||
{
|
||||
iClient->print("Host: ");
|
||||
iClient->print(iServerName);
|
||||
if (iServerPort != kHttpPort)
|
||||
if (iServerPort != kHttpPort && iServerPort != kHttpsPort)
|
||||
{
|
||||
iClient->print(":");
|
||||
iClient->print(iServerPort);
|
||||
|
@ -43,6 +43,7 @@ class HttpClient : public Client
|
||||
public:
|
||||
static const int kNoContentLengthHeader =-1;
|
||||
static const int kHttpPort =80;
|
||||
static const int kHttpsPort =443;
|
||||
static const char* kUserAgent;
|
||||
|
||||
// FIXME Write longer API request, using port and user-agent, example
|
||||
|
Loading…
x
Reference in New Issue
Block a user