mike23
December 7, 2022, 4:13pm
1
Hello,
how can I use URL-class for a connection to a server with a self-signed certificate? Is there any chance to switch off the verification?
String s_url = "https://127.0.0.1:1234/hello/world";
StringPairArray requestParam;
requestParam.set("message", "test");
URL src(s_url);
src= src.withParameters(requestParam);
String res = src.readEntireTextStream();
std::cout << res << std::endl;
Cheers!
Mike
mike23
December 12, 2022, 3:13pm
2
Hello,
does no one have an idea?
Mike
I’m not sure if there is a good cross platform support for this, you might need to research the specifics of your platform to see how you’d wrap it cross platform into JUCE, is the issue that you’re trying to connect to a local staging server over https? – You can use http?
I asked a similar question recently…
Thanks in advance for your help. I was wondering if there was any flag/preprocessor definition/edit to JUCE I can make that will let me make cURL network requests to a server with a self-signed certificate.
I am working on Linux, with JUCE_USE_CURL enabled and using a local VM to test web queries made by plugins. The VM is running apache with the default SSL cert, which is not considered secure by cURL. Using the command line, I can pass --insecure to tell cURL not to worry about it. Is there s…
In the end I just used http…
mike23
December 14, 2022, 9:07am
5
Using http is not an option, because I have no access to the server.
I decided to use curl lib now, but it would be perfect to use JUCE directly for that.
Mike