Re: Forming HTTP request from java code



Aditya Kumar wrote:
Hi all,

I want to know, how should I go about forming an HTTP request from
(core) Java code. Is it possible?

I'd like to tell you the exact scenario I am dealing with here. I need
to send a search request (preferably to Google) from within the java
application and then show the response (search results), in plain
text, to the user using the application. I hope this gives a good
enough picture of what I am trying to achieve.

Since I have not written any code as of now, I can only share what I
have in my mind!

Any pointers/references will be appreciated. If there is anything else
you may need to know, please feel free to ask me.

Thanks in advance,

Google has a WS API. Have you considered that?
.



Relevant Pages

  • Re: Forming HTTP request from java code
    ... how should I go about forming an HTTP request from ... Java code. ... to send a search request from within the java ...
    (comp.lang.java.programmer)
  • Forming HTTP request from java code
    ... how should I go about forming an HTTP request from ... Java code. ... I'd like to tell you the exact scenario I am dealing with here. ... to send a search request from within the java ...
    (comp.lang.java.programmer)
  • Re: Receive no data
    ... - it is the Google server that closes the connection without sending any data ... You are sending a very minimal HTTP request. ... very picky regarding the HTTP request headers it wants to see. ...
    (microsoft.public.win32.programmer.networks)
  • Re: Giving an application a window icon in a sensible way
    ... "Same format as Google.. ... "(..and that is something that is possible to verify, ... about as many lines of java code, ...
    (comp.lang.java.programmer)
  • Re: manual http request
    ... manually send the http request and get the html response without having to ... go through a browser. ... the search without having to go to google and typing it in and submiting it. ...
    (comp.lang.python)