in reply to Need Help with LWP

Maybe the website is buggy and can't handle spaces escaped as '+'? Try substituting the '+'s with '%20's

Replies are listed 'Best First'.
Re^2: Need Help with LWP
by diotalevi (Canon) on Oct 29, 2004 at 19:51 UTC
    URI::Escape's uri_escape function handles these details for you.
      I'm afraid the problem is not in the URL string itself. I used "+" to concatenate all parts of the street name, because this is what the website code does. The user is supposed to fill in an online form, and click the "Search" button. The URL is displayed in the "Address" field of the browser. Actually, one can use "%20" instead of "+" and it works (in the browser). I just can't quite figure out why the website returns "0 records found" when the very same URL string is sent via HTTP::Request. As I mentioned before, everything works fine if the street name consists of just one word.

        The proper thing to do when faced with two identical queries from different "browsers" (your browser vs IE) is to capture the request made by each and compare the two for differences and to find the difference that matters.

        Some people use proxies to log the browser's traffic, other people use network peeking tools, other people use Mozilla's built-in abilty to capture its HTTP traffic.

Re^2: Need Help with LWP
by alexnzus (Novice) on Oct 31, 2004 at 04:08 UTC
    Tried with exactly the same results. Thanks anyway.