• 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
  • Tim Cooke
  • Devaka Cooray
  • Ron McLeod
  • Jeanne Boyarsky
Sheriffs:
  • Liutauras Vilda
  • paul wheaton
  • Junilu Lacar
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Piet Souris
  • Carey Brown
  • Tim Holloway
Bartenders:
  • Martijn Verburg
  • Frits Walraven
  • Himai Minh

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 ]
 
Did you just should on me? You should read this tiny ad:
the value of filler advertising in 2021
https://coderanch.com/t/730886/filler-advertising
reply
    Bookmark Topic Watch Topic
  • New Topic