Can anyone give me some pointers on how to send to a web form in Java? I want to write a program like the xChan Directory Dumper. I know 4chan uses cgi, so is it hard/tricky for a Java application to "communicate" with a cgi app?
Googling turned up this link:
Danke schön, danke schön. This should be an informative read.
Why send to a web form? In the end it'll be sent as a PUT anyway. Communicating with a CGI program is just plain HTTP.
You should probably be using something like this: http://java.sun.com/j2se/1.5.0/docs/api/java/net/HttpURLConnection.html
>>4 probably means POST.
POST is a bit of a pain if you have to properly encode the form, but it's possible. What's easier is using XML-RPC or some other similar layer on top of HTTP.
> POST is a bit of a pain if you have to properly encode the form,
it's pretty easy in javascript.