Skip to content

CURLOPT_RESOLVE is not working correctly? #8109

Answered by jzakrzewski
ghost asked this question in Q&A
Discussion options

You must be logged in to vote

You've understood it backwards.
When you say "example.com:666:140.82.121.4" it means to curl "whenever you want to connect to 'example.com' on port 666, use '140.82.121.4' as the IP". It does not magically change the default port of http/s to 666.
So this entry will only have an effect if you say curl_easy_setopt (curl, CURLOPT_URL, "https://example.com:666");

Replies: 3 comments 2 replies

Comment options

You must be logged in to vote
1 reply
@ghost
Comment options

Comment options

You must be logged in to vote
0 replies
Answer selected
Comment options

You must be logged in to vote
1 reply
@ghost
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants