This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread for details.
The moose likes Sockets and Internet Protocols and the fly likes Java Website post Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Java » Sockets and Internet Protocols
Bookmark "Java Website post" Watch "Java Website post" New topic
Author

Java Website post

John Hass
Greenhorn

Joined: Oct 31, 2004
Posts: 2
I need to be able to read a website get a variable called sessionid then post it back to the site with my search term. Does anyone have any examples for this?

Thanks,
John
Bhushan Damle
Greenhorn

Joined: Nov 28, 2004
Posts: 21
elaborate what u want to do?
Alex Wolf
Greenhorn

Joined: Aug 24, 2004
Posts: 16
ok i think i know what you want.
basically you want to read a website with a httpurlconnection, then you're searching for the variable from the what you read, and then you need to make a POST to the site, for like a form or so.

I'd suggest you read through the documentation of URLConnection and HttpURLConnection.



this is just the posting part. im too lazy to experiment for you, so you'll have to do the first part yourself. I hope this helps you somewhat. Just read the documentation, and collect examples.
good luck
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Java Website post
 
Similar Threads
Oral English teacher are needed in China
change password
DAO pattern and server's DataSource approach
what mechanism does javaranch employ?
RUP artifacts templates