lhttp | go websocket, a better way to buid your IM server | Websocket library
kandi X-RAY | lhttp Summary
kandi X-RAY | lhttp Summary
go websocket, a better way to buid your IM server
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
Currently covering the most popular Java, JavaScript and Python libraries. See a Sample of lhttp
lhttp Key Features
lhttp Examples and Code Snippets
Community Discussions
Trending Discussions on lhttp
QUESTION
This code:
...ANSWER
Answered 2022-Mar-17 at 14:40Per the WinHTTP Error Messages documentation:
ERROR_WINHTTP_SECURE_FAILURE
12175
One or more errors were found in the Secure Sockets Layer (SSL) certificate sent by the server. To determine what type of error was encountered, check for a
WINHTTP_CALLBACK_STATUS_SECURE_FAILURE
notification in a status callback function. For more information, seeWINHTTP_STATUS_CALLBACK
.
Unfortunately, THTTPClient
does not provide access for you to use such a callback, but it does use an internal callback to capture the reason for ERROR_WINHTTP_SECURE_FAILURE
in its SecureFailureReasons
property. So you can check that for more info.
Are you sure you enabled TLS 1.3 on Windows 10? Are you using build 1903 or later? Earlier builds do not support TLS 1.3.
QUESTION
I'm trying to make an HTTPS Post request in Delphi XE6 and Indy (v10.6.2.0).
I was able to successfully perform the call to this API and get the response using JavaScript:
JavaScript code causing API response to output twice
But I need to do the same in a Delphi application.
I tried multiple attempts using various configurations with TIdSSLIOHandlerSocketOpenSSL
, but am getting the error:
Could not load SSL library
The libeay32.dll
was the culprit. I also went to the GitHub repo for Indy and wasn't sure which dependent file I needed to download.
The code below is giving me the error:
Cannot open file "C:\Users.. \IndyHTTPSTest\Win32\Debug\dXNlcm5hbWU6cGFzc3dvcmQ=". The system cannot find the file specified.
What am I missing to get this to run in Delphi XE6 like the JavaScript code?
I have included libeay32.dll
and ssleay32.dll
within my project folder.
Here's my code:
...ANSWER
Answered 2021-Jan-30 at 07:58You can change declaration of the sLog: String
to sLog: TStrings
. Then in the onCreate
instantiate the sLog := TStringList.Create
and then later in code sLog.Text := Base64.Encode(s);
.
So,
QUESTION
How I can make a GET request on this example?
http://localhost:9000/api/public/v1/action=X
I tried with TIdHTTP
but only the 80 port its acceptable and when I try the 9000 port this error happen:
Unknow protocol
My code:
...ANSWER
Answered 2020-Mar-12 at 15:29TIdHTTP
should work fine with non-standard ports, provided you actually have an HTTP server listening on localhost
on port 9000
, eg:
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install lhttp
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page