irmecir

HTTPSRedirect.h

Oct 8th, 2017
274
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.71 KB | None | 0 0
  1. /* HTTPS with follow-redirect
  2. * Created by Sujay S. Phadke, 2016
  3. * All rights reserved.
  4. *
  5. */
  6.  
  7. #include <WiFiClientSecure.h>
  8. #include "Arduino.h"
  9.  
  10. class HTTPSRedirect : public WiFiClientSecure {
  11. private:
  12. const int httpsPort;
  13. const char* redirFingerprint;
  14. bool fpCheck = false;
  15. bool keepAlive = true;
  16. bool verboseInfo = false;
  17.  
  18. public:
  19. String myLine="";
  20.  
  21. HTTPSRedirect(const int, const char*, bool);
  22. HTTPSRedirect(const int);
  23. ~HTTPSRedirect();
  24.  
  25. bool printRedir(const char*, const char*, const char*);
  26. bool printRedir(String&, const char*, const char*);
  27. String createRequest(const char*, const char*);
  28. void fetchData(bool, bool);
  29. };
Advertisement
Add Comment
Please, Sign In to add comment