Two Laptop Bag
The moose likes Java in General and the fly likes problem with search engines Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Java in General
Bookmark "problem with search engines" Watch "problem with search engines" New topic

problem with search engines

vas vas

Joined: Dec 13, 2004
Posts: 19
Hello All,

I am having a problem with search engines.
I am able to connect to google and yahoo thro java and retrieve the html code.

say,for google the url is

I am getting the html code when "java" is the query.

But when I click next in google(for next set of results) , the url is ..

When I try to connect to this url , i am getting malformed url exceptions.

It is the same with yahoo.

Hope u understood my problem.
How can i get the html code from this url???

Can anyone help me??
pascal betz
Ranch Hand

Joined: Jun 19, 2001
Posts: 547
perhaps you can show what you coded so far ?

Jeroen Wenting
Ranch Hand

Joined: Oct 12, 2000
Posts: 5093
read up on URL encoding.

Ernest Friedman-Hill
author and iconoclast

Joined: Jul 08, 2003
Posts: 24199

We have a whole forum devoted to Sockets and Internet Protocols which I think is a god fit for your problem. I'm moving this thread over there.

[Jess in Action][AskingGoodQuestions]
I agree. Here's the link:
subject: problem with search engines
It's not a secret anymore!