Hi,

Is there a relatively easy way to intercept the DNS lookup results from
PoCo::Client::HTTP? I looked through the code and all I could think of
was to either subclass PoCo::Client::HTTP, or to do the DNS lookup
myself and send a request with an ipaddress instead of a hostname.

The second solution works, but it's kind of cumbersome in that I need to
almost replicate what PoCo::Client::HTTP does, plus I also need to map
back the ipaddress to its original hostname after the request is done
for my particular needs (I need to know the hostname to resolve links in
the document fetched via HTTP, not IP address)

If you have any ideas, I'd much appreciate it.
Regards,
--d

Reply via email to