GithubHelp home page GithubHelp logo

HTTPS Support about httprequest HOT 6 OPEN

elnormous avatar elnormous commented on July 17, 2024 31
HTTPS Support

from httprequest.

Comments (6)

SpookySec avatar SpookySec commented on July 17, 2024 2

I had the same problem, I just removed the "if" statement that checked if it was "http" in the HTTPRequest.hpp and somehow it works ¯\_(ツ)_/¯

from httprequest.

shlomnissan avatar shlomnissan commented on July 17, 2024 1
  • Firstly, this library is portable and very easy to use as it doesn't require any dependencies. However, to support HTTPS, you will need a dependency such as OpenSSL to provide crypto algorithms and abstractions for the TLS handshake, certificate verification, etc.
  • Any HTTPS implementation worth considering requires the verification of certificate authorities. Although each operating system has its own source of verified certificate authorities, there is no unified way to fetch them. Cross-platform libraries that support HTTPS, such as curl, use an external source of root certificates.

HTTPS support is NOT a matter of removing a a conditional statement in the code.

from httprequest.

lnfin avatar lnfin commented on July 17, 2024

I had the same problem, I just removed the "if" statement that checked if it was "http" in the HTTPRequest.hpp and somehow it works ¯_(ツ)_/¯

Can you tell me what line of code that statement is in? I can't find it

p.s. I found it, thanks

from httprequest.

SpookySec avatar SpookySec commented on July 17, 2024

yeah... it was line 600 haha

from httprequest.

rwhitcroft avatar rwhitcroft commented on July 17, 2024

I had the same problem, I just removed the "if" statement that checked if it was "http" in the HTTPRequest.hpp and somehow it works ¯_(ツ)_/¯

Removing the if isn't a solution. This client does not know how to speak SSL, so servers listening on 443/https will just close the connection.

from httprequest.

SpookySec avatar SpookySec commented on July 17, 2024

That was 3 years ago!! I was 15 or 14 at the time and barely had any knowledge of how protocols actually worked, for me it was just an annoying line getting printed every time I tried sending a request.

I ended up forking it, removing that line, and went with it which worked fine for my use case back then.

Thanks for your replies everyone, and please don't mind my old comment 😅

from httprequest.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.