Revision 5914
Added by ben leinfelder over 13 years ago
MCTestCase.java | ||
---|---|---|
48 | 48 |
import java.util.TimeZone; |
49 | 49 |
import java.util.Vector; |
50 | 50 |
|
51 |
import org.apache.commons.httpclient.HttpClient; |
|
51 |
import org.apache.http.client.HttpClient; |
|
52 |
import org.apache.http.impl.client.DefaultHttpClient; |
|
52 | 53 |
|
53 | 54 |
import edu.ucsb.nceas.metacat.database.DBConnection; |
54 | 55 |
import edu.ucsb.nceas.metacat.database.DBConnectionPool; |
... | ... | |
538 | 539 |
DBConnectionPool.returnDBConnection(dbconn, serialNumber); |
539 | 540 |
} |
540 | 541 |
|
541 |
protected static void httpPost(String url, HashMap<String,String> paramMap) throws IOException {
|
|
542 |
protected static void httpPost(String url, HashMap<String,String> paramMap) throws Exception {
|
|
542 | 543 |
debug("Posting to: " + url); |
543 | 544 |
if (httpClient == null) { |
544 |
httpClient = new HttpClient(); |
|
545 |
httpClient = new DefaultHttpClient();
|
|
545 | 546 |
} |
546 | 547 |
String postResponse = RequestUtil.post(httpClient, url, paramMap); |
547 | 548 |
debug("Post response: " + postResponse); |
Also available in: Unified diff
remove httpclient 3.1 and custom-built httpclient.jar
rework MetacatClient (and other classes) to use httpclient 4
updated build to not create httpclient.jar
encoding tests now pass.