• Post Reply Bookmark Topic Watch Topic
  • New Topic

How to send a information to a form?  RSS feed

 
Frederico Benevides
Greenhorn
Posts: 25
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I would like to know how I do in java to send to the form the params the values of "username" "password" "__login", for I can get connect?

I want to try to do a program in java, that I will run in the console, and it will connect and update my ip address. But I don't know how to send the params to a form.




Thank you.
 
pascal betz
Ranch Hand
Posts: 547
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
let me see if i got you correctly...
you want to have a console application that "simulates" a form submit ? (to update your dyndns ip ?

ok, there are several ways you can solve this:
URLConnection and its subclass HTTPUrlConnection (huc). the huc class supports some parts of the http protocol but is not very convenient if you want to do more complicate stuff (including redirection and so on).
there is a library from apache: jakarta http client
which can help you sending form data.

get/post and java

hope these pointers help you further...
 
Frederico Benevides
Greenhorn
Posts: 25
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You understood what I need!

Thank you.
[ April 09, 2006: Message edited by: Frederico Benevides ]
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!