Looks like the solution is out there and should not be that hard to get. But when I'm trying out the suggestions given and reading about this, I this don't get this to work.
Heres a trace I got from my browser when I sent a POST (thisi swhat I want to with a small java program)
POST /mypages/servlet/AdminServlet?Service=TestService HTTP/1.1
Accept: image/gif, image/x-xbitmap, image/jpeg, image/pjpeg, application/vnd.ms-powerpoint, application/vnd.ms-excel, application/msword, */*
Referer:
http://storstark.e-horizon.se/ Accept-Language: sv
Content-Type: application/x-www-form-urlencoded
Accept-Encoding: gzip, deflate
User-Agent: Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.0; .NET CLR 1.1.4322)
Host: storstark.e-horizon.se
Content-Length: 65
Connection: Keep-Alive
Cache-Control: no-cache
NAME=andreas&DATA=testing&Button.x=31&Button.y=6
The message is sent to ip computer.domain.se. Could someone show me how I should use URL and URLConnection to achive this? I guess some of the fields in the POST message are not important...
Regards,
Andreas