src/HTTPClient/HTTPConnection.java
/**
     * POSTs form-data to the specified file. The data is first urlencoded
     * and then turned into a string of the form "name1=value1&name2=value2".
     * A <var>Content-type</var> header with the value
     * <var>application/x-www-form-urlencoded</var> is added.
     *
     * @param     file      the absolute path of the file
     * @param     form_data an array of Name/Value pairs
     * @return    an HTTPResponse structure containing the response
     * @exception java.io.IOException when an exception is returned from
     *                                the socket.
     * @exception ModuleException if an exception is encountered in any module.
     */
POSTs form-data to the specified file. The data is first urlencoded
and then turned into a string of the form "name1=value1&name2=value2".
A Content-type header with the value
application/x-www-form-urlencoded is added.

@param     file      the absolute path of the file
@param     form_data an array of Name/Value pairs
@return    an HTTPResponse structure containing the response
@exception java.io.IOException when an exception is returned from
the socket.
@exception ModuleException if an exception is encountered in any module.
POSTs form - data to the specified file . The data is first urlencoded and then turned into a string of the form " name1 = value1&name2 = value2 " . A Content - type header with the value application / x - www - form - urlencoded is added . @param file the absolute path of the file @param form_data an array of Name / Value pairs @return an HTTPResponse structure containing the response @exception java . io . IOException when an exception is returned from the socket . @exception ModuleException if an exception is encountered in any module .
public HTTPResponse Post(String file, NVPair form_data[])
		throws IOException, ModuleException
    {
	NVPair[] headers =
	    { new NVPair("Content-type", "application/x-www-form-urlencoded") };
	return Post(file, Codecs.nv2query(form_data), headers);
    }
public HTTPResponse Post ( String file , NVPair form_data [ ] ) throws IOException , ModuleException { NVPair [ ] headers = { new NVPair ( "Content-type" , "application/x-www-form-urlencoded" ) } ; return Post ( file , Codecs . nv2query ( form_data ) , headers ) ; }
POSTs form-data to the specified file.
POSTs form - data to the specified file .