> This seems like such a trivial issue, yet no one posted an answer.
> ... I
> guess I never thought I'd stump this group... I'm still in desperate
> need to figure this out. Any more help? I am willing to bribe :)

Signature
Andrew Thompson
physci, javasaver, 1point1c, lensescapes - athompson.info/andrew
I just re-read my ealier message... I definately didn't mean to sound
the way I think it sounded. It was a poor attempt at humor. I
appreciate all comments... and didn't mean to imply otherwise.
The problem I posted occurs with other sites as well... I have the same
issue happening with whitepages.com... here is the url that fails via
URL but suceeds via address bar:
http://www.whitepages.com/10001/search/Find_Person?firstname_begins_with=1&first
name=John&name=Smith&city_zip=Roseville&state_id=MI&metro_area=1&printer_friendl
y=1
This just seems so "bothersome" to me because it sorta goes against
everything I think that "should" work... if it works in an address bar
I assume it should work as a URL.
I'm going to try to get some sort of sniffing utility to see exactly
what is being sent to google/whitepages when I use the address line and
when I use URL/java and see if there is something different. Any other
comments are really, really welcome.
> > This seems like such a trivial issue, yet no one posted an answer.
>
[quoted text clipped - 21 lines]
> Andrew Thompson
> physci, javasaver, 1point1c, lensescapes - athompson.info/andrew
Andrew Thompson - 09 Dec 2005 09:26 GMT
> I just re-read my ealier message... I definately didn't mean to sound
> the way I think it sounded. It was a poor attempt at humor. I
> appreciate all comments... and didn't mean to imply otherwise.
Cool. (next we'll deal with the top-posting, but, in the meantime..)
> The problem I posted occurs with other sites as well... I have the same
> issue happening with whitepages.com... here is the url that fails via
> URL but suceeds via address bar:
>
> http://www.whitepages.com/10001/search/Find_Person?firstname_begins_with=1&first
name=John&name=Smith&city_zip=Roseville&state_id=MI&metro_area=1&printer_friendl
y=1
Try this as a main()..
public static void main(String[] args) throws Exception {
URL url = new URL("http://www.whitepages.com/" +
"10001/search/Find_Person?firstname_begins_with" +
"=1&firstname=John&name=Smith&city_zip=Roseville" +
"&state_id=MI&metro_area=1&printer_friendly=1");
try {
URLConnection urlc = url.openConnection();
InputStream is = urlc.getInputStream();
System.out.println( "connection opened");
} catch (Exception e) {
e.printStackTrace();
}
}
> This just seems so "bothersome" ..
Yes. I gave you a clue to the cause in my first post, and
steve gave you code that (I guess) will 'fix' it, but you do
not seem to be paying close attention.

Signature
Andrew Thompson
physci, javasaver, 1point1c, lensescapes - athompson.info/andrew
Nigel Wade - 09 Dec 2005 14:40 GMT
> I just re-read my ealier message... I definately didn't mean to sound
> the way I think it sounded. It was a poor attempt at humor. I
[quoted text clipped - 3 lines]
> issue happening with whitepages.com... here is the url that fails via
> URL but suceeds via address bar:
http://www.whitepages.com/10001/search/Find_Person?firstname_begins_with=1&first
name=John&name=Smith&city_zip=Roseville&state_id=MI&metro_area=1&printer_friendl
y=1
> This just seems so "bothersome" to me because it sorta goes against
> everything I think that "should" work... if it works in an address bar
> I assume it should work as a URL.
You maybe heading up against a blind alley here.
Many search engines go to great lengths to prevent you from doing automated
searches. The idea is to stop you from putting up your own "search engine"
which does nothing other than pass off requests to their site while bypassing
all their adverts.

Signature
Nigel Wade, System Administrator, Space Plasma Physics Group,
University of Leicester, Leicester, LE1 7RH, UK
E-mail : nmw@ion.le.ac.uk
Phone : +44 (0)116 2523548, Fax : +44 (0)116 2523555