I would like to dynamically set the outgoing IP of my HTTP::GHTTP object, however I can find this anywhere in the documentation. Is anyone aware of a way to do this? Thanks!
I would like to dynamically set the outgoing IP of my HTTP::GHTTP object, however
Share
Looking at the libghttp source, I can’t find any mention of anything like a local address. It’s using the normal C socket libraries, so perhaps you can wedge something in using that.
HTTP::GHTTP and libghttp haven’t been maintained in 10 years. The libghttp docs are all but non-existent. Unless you have a pressing need to use that specific http library I would suggest looking at a maintained option.
LWP::UserAgent and HTTP::Tiny are the normal HTTP libraries used in Perl. LWP::UserAgent has a local_address property as does HTTP::Tiny.