org.globus.cog.util
Class HTTPPost

java.lang.Object
  extended byorg.globus.cog.util.HTTPPost

public class HTTPPost
extends Object


Constructor Summary
HTTPPost()
           
 
Method Summary
static void main(String[] args)
          A quick test of HTTPPost
 String post(String url, Map args)
           
 String post(URL url, Map args)
          Posts data args={parameterName=>parameterValue} to a url and then returns the result as a string
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

HTTPPost

public HTTPPost()
Method Detail

post

public String post(String url,
                   Map args)
            throws MalformedURLException,
                   IOException
Throws:
MalformedURLException
IOException

post

public String post(URL url,
                   Map args)
            throws IOException
Posts data args={parameterName=>parameterValue} to a url and then returns the result as a string

Parameters:
url -
args -
Returns:
Throws:
IOException

main

public static void main(String[] args)
A quick test of HTTPPost

Parameters:
args -