Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > Java > How do I send an HTTP form from Java?

Reply
Thread Tools

How do I send an HTTP form from Java?

 
 
furby
Guest
Posts: n/a
 
      01-25-2006
I'm using netbeans to develop a small Java application. It consists of
two fields, that I want to be able to submit to a web page (Therefore
simulating the use of the form that would normally be used. This way I
can do some of the prcessing for my app offline... It makes sense,
really.).

How do I do this? I used to write a lot of apps in Java, but I haven't
done much in the language for a few years now. I'm sure there's a
way....

 
Reply With Quote
 
 
 
 
Chris Smith
Guest
Posts: n/a
 
      01-25-2006
furby <> wrote:
> I'm using netbeans to develop a small Java application. It consists of
> two fields, that I want to be able to submit to a web page (Therefore
> simulating the use of the form that would normally be used. This way I
> can do some of the prcessing for my app offline... It makes sense,
> really.).
>
> How do I do this? I used to write a lot of apps in Java, but I haven't
> done much in the language for a few years now. I'm sure there's a
> way....


Google "Jakarta Commons HttpClient"
or, use java.net.URL, but your code will be less clear.

--
www.designacourse.com
The Easiest Way To Train Anyone... Anywhere.

Chris Smith - Lead Software Developer/Technical Trainer
MindIQ Corporation
 
Reply With Quote
 
 
 
 
raavi
Guest
Posts: n/a
 
      01-25-2006
Can you explain your problem in detail? actually what do u want ur
project to do? do you want to submit an html form to your servlet?
Chris Smith wrote:
> furby <> wrote:
> > I'm using netbeans to develop a small Java application. It consists of
> > two fields, that I want to be able to submit to a web page (Therefore
> > simulating the use of the form that would normally be used. This way I
> > can do some of the prcessing for my app offline... It makes sense,
> > really.).
> >
> > How do I do this? I used to write a lot of apps in Java, but I haven't
> > done much in the language for a few years now. I'm sure there's a
> > way....

>
> Google "Jakarta Commons HttpClient"
> or, use java.net.URL, but your code will be less clear.
>
> --
> www.designacourse.com
> The Easiest Way To Train Anyone... Anywhere.
>
> Chris Smith - Lead Software Developer/Technical Trainer
> MindIQ Corporation


 
Reply With Quote
 
Chris Smith
Guest
Posts: n/a
 
      01-25-2006
[top-posting fixed]

> > furby <> wrote:
> > > I'm using netbeans to develop a small Java application. It consists of
> > > two fields, that I want to be able to submit to a web page (Therefore
> > > simulating the use of the form that would normally be used. This way I
> > > can do some of the prcessing for my app offline... It makes sense,
> > > really.).


> Chris Smith wrote:
> >
> > Google "Jakarta Commons HttpClient"
> > or, use java.net.URL, but your code will be less clear.


raavi <> wrote:
> Can you explain your problem in detail? actually what do u want ur
> project to do? do you want to submit an html form to your servlet?


It's not my problem. It's furby's problem. Nevertheless, furby was
pretty clear in explaining that this is an application (meaning: not a
servlet) that needs to simulate (meaning: not actually use) an HTML form
submission.

--
www.designacourse.com
The Easiest Way To Train Anyone... Anywhere.

Chris Smith - Lead Software Developer/Technical Trainer
MindIQ Corporation
 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Send Basic HTTP authentication credential in the first HTTP request Nacho Nachev ASP .Net Web Services 2 09-05-2012 08:49 PM
HTTP SOAP/HTTP GET/HTTP POST milan_9211 Software 0 01-10-2011 02:10 PM
How to send a http::get or http::post with a cookie? mrpink Ruby 2 04-22-2007 07:57 AM
Read data from file, send via HTTP form jim.omalley@image66amarillo.com Javascript 1 06-16-2006 01:25 AM
how can i simulate my pc as http server by writing java code to send the http response by socketstream to some pc in the internet?! mike Java 5 09-21-2004 02:04 PM



Advertisments
 



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57