1
0
mirror of https://github.com/esp8266/Arduino.git synced 2025-06-17 22:23:10 +03:00

Added [no]checkSSL method that sets an "insecure" boolean flag.

If insecure, "-k" parameter is added to curl and SSL certificates
are not checked
This commit is contained in:
Federico Fissore
2014-05-21 11:15:09 +02:00
parent cdf70e501d
commit 61826901ae
2 changed files with 30 additions and 4 deletions

View File

@ -23,6 +23,7 @@
class HttpClient : public Process {
public:
HttpClient();
unsigned int get(String &url);
unsigned int get(const char * url);
@ -30,6 +31,11 @@ class HttpClient : public Process {
void getAsynchronously(const char * url);
boolean ready();
unsigned int getResult();
void noCheckSSL();
void checkSSL();
private:
boolean insecure;
};