I'm using LWP::UserAgent and HTTP::Request to check out rankings on the "popular" search engines ... as you know, the most "popular" uses many data centers around the world, and your queries get routed to the one closest to you geographically.
Now whilst I can retrive the pages fine and parse out the results, is there any way to retrieve the actual remote IP that these HTTP::Requests are being served from.
I mean if I do a GET call to www.booble.com, the page might be sent back from one of N IP numbers ... how do I hack into LWP and ascertain the IP number ? If there any low level way to examine the TCP/IP packets of an actual LWP call as it is being used ?
Obviously I had thought about a ping of something similar immediately before of afterwards, but that doesn't guarantee the exact same IP as the one the LWP was fed from ... they can change in milliseconds, purely depending on their loading conditions.
Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
Read Where should I post X? if you're not absolutely sure you're posting in the right place.
Please read these before you post! —
Posts may use any of the Perl Monks Approved HTML tags:
- a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
| |
For: |
|
Use: |
| & | | & |
| < | | < |
| > | | > |
| [ | | [ |
| ] | | ] |
Link using PerlMonks shortcuts! What shortcuts can I use for linking?
See Writeup Formatting Tips and other pages linked from there for more info.