Conversation
Codecov Report
@@ Coverage Diff @@
## main #1530 +/- ##
==========================================
+ Coverage 84.57% 84.63% +0.07%
==========================================
Files 156 156
Lines 4795 4795
==========================================
+ Hits 4055 4058 +3
+ Misses 740 737 -3
|
| curl::HttpClientSync http_client; | ||
|
|
||
| http_client::Headers m1 = {}; | ||
| auto result = http_client.Get("http://222.222.222.200:19000/get/", m1); |
There was a problem hiding this comment.
Wondering why is the IP address changed? I think it is intended as some invalid/unreachable address. @lalitb
There was a problem hiding this comment.
I think this address is invalid either
There was a problem hiding this comment.
Some local app could listen on https://127.0.0.1:19000?
There was a problem hiding this comment.
We can also use the address from Documentation Address Block (https://datatracker.ietf.org/doc/html/rfc5737#section-4), as they are not allowed to be used on the public internet, and so would be always unreachable.
192.0.2.0 – 192.0.2.255
198.51.100.0 – 198.51.100.255
233.252.0.0 - 233.252.0.255
Some implements of libcurl will connect failed immediately and call the callback in the IO thread if it try to connect a invalid address. And the callback will reset |
Thanks @owent, it fixed :) |
Fixes #1529 (issue)
Changes
uses HTTPS URLs
For significant contributions please make sure you have completed the following items:
CHANGELOG.mdupdated for non-trivial changes