public HttpResponse doHttpCall ( final String urlString , final File fileToBeSent , final String proxyHost , final int proxyPort , final String fileEncoding ) throws IOException { return this . doHttpCall ( urlString , fileUtil . getFileContentsAsString ( fileToBeSent , fileEncoding ) , "" , "" , proxyHost , 0 , Collections . < String , String > emptyMap ( ) ) ; }
Sends a string to a URL . This is very helpful when SOAP web services are involved or you just want to post a XML message to a URL . If the connection is done through a proxy server you can pass the proxy port and host as parameters .