net.i2p.util
Class EepPost
java.lang.Object
net.i2p.util.EepPost
public class EepPost
- extends java.lang.Object
Simple helper for uploading files and such via HTTP POST (rfc 1867)
Method Summary |
static void |
main(java.lang.String[] args)
|
void |
postFiles(java.lang.String url,
java.lang.String proxyHost,
int proxyPort,
java.util.Map fields,
java.lang.Runnable onCompletion)
Submit an HTTP POST to the given URL (using the proxy if specified),
uploading the given fields. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
EepPost
public EepPost()
EepPost
public EepPost(I2PAppContext ctx)
main
public static void main(java.lang.String[] args)
postFiles
public void postFiles(java.lang.String url,
java.lang.String proxyHost,
int proxyPort,
java.util.Map fields,
java.lang.Runnable onCompletion)
- Submit an HTTP POST to the given URL (using the proxy if specified),
uploading the given fields. If the field's value is a File object, then
that file is uploaded, and if the field's value is a String object, the
value is posted for that particular field. Multiple values for one
field name is not currently supported.