Hi All,

I am not sure if this is right place to post this question as I posted one already on another section. Giving myself benefit of doubt, and a first timer on this excellent website for perl folks, I will ask again !!

I am trying to perform some functional testing on a particular website.

Basically, users can visit the website from different countries. And based upon the location of the user, the site displays relevant information. The webserver uses an external software that does the client IP to country mapping.

My question is, how do I simulate the GET requests to this server from the varied locations/country ? One solution that comes to my mind is to use free http proxies in various countries and write custom code using say LWP module for making the requests routed from the proxies.

The difficulty I am facing with this approach is that the current list of web proxies I could find from google do not work with a simple GET/POST form for submitting the URL to the proxy. So automation is not easy. Instead they work with some additional headers such as the cookies and it gets quite cumbersome figuring out the logic for each of the free proxy's URL form logic. To add to the problem, the free proxies are online only for a few hours.

Did people have had any similar experiences? Any advice/feedback would be very helpful.

Gracias, Decebel


In reply to Effective request simulation from various location by decebel

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • 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:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.