Re: Specify specific IP address?

2019-09-07 Thread Felipe Gasper via curl-library
Nifty! Yeah I realized the socket callback approach entails a wasted DNS 
lookup. I’ll give this a crack.

-F

> On Sep 7, 2019, at 07:24, Daniel Stenberg  wrote:
> 
>> On Fri, 6 Sep 2019, Felipe Gasper via curl-library wrote:
>> 
>> Never mind, I think I have it w/ the open-socket callback.
> 
> I once blogged about different options:
> 
> https://daniel.haxx.se/blog/2018/04/05/curl-another-host/
> 
> -- 
> 
> / daniel.haxx.se | Get the best commercial curl support there is - from me
>  | Private help, bug fixes, support, ports, new features
>  | https://www.wolfssl.com/contact/


---
Unsubscribe: https://cool.haxx.se/list/listinfo/curl-library
Etiquette:   https://curl.haxx.se/mail/etiquette.html

Re: Specify specific IP address?

2019-09-07 Thread Daniel Stenberg via curl-library

On Fri, 6 Sep 2019, Felipe Gasper via curl-library wrote:


Never mind, I think I have it w/ the open-socket callback.


I once blogged about different options:

 https://daniel.haxx.se/blog/2018/04/05/curl-another-host/

--

 / daniel.haxx.se | Get the best commercial curl support there is - from me
  | Private help, bug fixes, support, ports, new features
  | https://www.wolfssl.com/contact/
---
Unsubscribe: https://cool.haxx.se/list/listinfo/curl-library
Etiquette:   https://curl.haxx.se/mail/etiquette.html

Re: Specify specific IP address?

2019-09-06 Thread Felipe Gasper via curl-library
Never mind, I think I have it w/ the open-socket callback.

Thank you--sorry for the noise.

-FG

> On Sep 6, 2019, at 5:12 PM, Felipe Gasper via curl-library 
>  wrote:
> 
> Hello,
> 
>   Is it possible for libcurl to use a specified peer IP address when 
> making a request?
> 
>   I tried using http://$ip/... with a custom Host header, but that makes 
> SSL verification fail.
> 
>   Thank you!
> 
> -Felipe Gasper
> Mississauga, Ontario
> ---
> Unsubscribe: https://cool.haxx.se/list/listinfo/curl-library
> Etiquette:   https://curl.haxx.se/mail/etiquette.html


---
Unsubscribe: https://cool.haxx.se/list/listinfo/curl-library
Etiquette:   https://curl.haxx.se/mail/etiquette.html

Specify specific IP address?

2019-09-06 Thread Felipe Gasper via curl-library
Hello,

Is it possible for libcurl to use a specified peer IP address when 
making a request?

I tried using http://$ip/... with a custom Host header, but that makes 
SSL verification fail.

Thank you!

-Felipe Gasper
Mississauga, Ontario
---
Unsubscribe: https://cool.haxx.se/list/listinfo/curl-library
Etiquette:   https://curl.haxx.se/mail/etiquette.html