• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

How to send a information to a form?

 
Greenhorn
Posts: 25
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
Ranch Hand
Posts: 547
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
You understood what I need!

Thank you.
[ April 09, 2006: Message edited by: Frederico Benevides ]
 
Consider Paul's rocket mass heater.
reply
    Bookmark Topic Watch Topic
  • New Topic