Revision 5043
Added by daigle about 15 years ago
src/edu/ucsb/nceas/metacat/util/RequestUtil.java | ||
---|---|---|
134 | 134 |
urlConn.setDoOutput(true); |
135 | 135 |
|
136 | 136 |
PrintWriter pw = new PrintWriter(urlConn.getOutputStream()); |
137 |
pw.println(paramsToQuery(params)); |
|
137 |
String queryString = paramsToQuery(params); |
|
138 |
logMetacat.debug("Sending get request: " + urlString + "?" + queryString); |
|
139 |
pw.print(queryString); |
|
138 | 140 |
pw.close(); |
139 | 141 |
|
140 | 142 |
// get the input from the request |
... | ... | |
359 | 361 |
boolean firstParam = true; |
360 | 362 |
for (String paramName : params.keySet()) { |
361 | 363 |
if (firstParam) { |
362 |
// query = "?" ; |
|
363 | 364 |
firstParam = false; |
364 | 365 |
} else { |
365 | 366 |
query += "&"; |
Also available in: Unified diff
change pw.println to print to remove newline at end of url