org.af.commons.errorhandling
Class HTTPPoster
java.lang.Object
org.af.commons.errorhandling.HTTPPoster
public class HTTPPoster
- extends Object
Uploads String values and files via HTTP.
maxBufferSize
public static final int maxBufferSize
- See Also:
- Constant Field Values
HTTPPoster
public HTTPPoster()
post
public String post(String urlString,
Hashtable<String,String> table,
Hashtable<String,File> files)
throws IOException
- Uploads String values and files via HTTP.
- Parameters:
urlString - the URL to that we want to send a POSTtable - will be send as form-datafiles - will be attached
- Returns:
- the response of the server
- Throws:
IOException
main
public static void main(String[] args)
throws Exception
- Throws:
Exception