Click to See Complete Forum and Search --> : build an application to log into website


ruba
02-22-2006, 09:03 PM
Hello All,

I’m trying to programmatically log into a website.
In-other-words, I would like to build an application/applet/script (whatever) so that when it’s executed it uses my username & password to log into a web server and then allow me to perform searches and display the results (currently this is possible by loggin through a web browser).

I have experience with c++, Java, perl and a little javascript.

I have tried the Java.net package (URL & sockets) with no success.
I could write some server socket code to put on the server and listen for my connection but at this point I’m trying to work through the “normal” webtop interface (not around it).

Thank you for any help or suggestions.

p.s. please feel free to move this thread if it's in the wrong area.

ray326
02-22-2006, 11:23 PM
Ask in the Java forum here but you can use a java.net.HttpURLConnection and control all kinds of things including adding the authentication header to the request. This allows you to make requests for resources protected with Basic Authentication.

ruba
02-23-2006, 07:34 PM
Thanks for your time, I'll give it a try :-)