Re: Specify specific IP address?
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?
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?
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?
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