aspose file tools*
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


Win a copy of Java 8 in Action this week in the Java 8 forum!
JavaRanch » Java Forums » Java » Java in General
Bookmark "problem with search engines" Watch "problem with search engines" New topic
Author

problem with search engines

vas vas
Greenhorn

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 http://www.google.com/search?q=java

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 ..


http://www.google.com/search?q=java&hl=en&lr=&start=10&sa=N

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 ?

pascal
Jeroen Wenting
Ranch Hand

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


42
Ernest Friedman-Hill
author and iconoclast
Marshal

Joined: Jul 08, 2003
Posts: 24168
    
  30

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: http://aspose.com/file-tools
 
subject: problem with search engines
 
Similar Threads
The page cannot be displayed
a VB Question
problem with search engines
Browser Back button problem using struts.
Who is your worst enemy??