Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /* HTTPS with follow-redirect
- * Created by Sujay S. Phadke, 2016
- * All rights reserved.
- *
- */
- #include <WiFiClientSecure.h>
- #include "Arduino.h"
- class HTTPSRedirect : public WiFiClientSecure {
- private:
- const int httpsPort;
- const char* redirFingerprint;
- bool fpCheck = false;
- bool keepAlive = true;
- bool verboseInfo = false;
- public:
- String myLine="";
- HTTPSRedirect(const int, const char*, bool);
- HTTPSRedirect(const int);
- ~HTTPSRedirect();
- bool printRedir(const char*, const char*, const char*);
- bool printRedir(String&, const char*, const char*);
- String createRequest(const char*, const char*);
- void fetchData(bool, bool);
- };
Advertisement
Add Comment
Please, Sign In to add comment