// send the data to the url receiver ...
out = new DataOutputStream(urlConnection.getOutputStream());
String content = (String) remoteUrlList.get(urlID + ".params");
content = (content == null ? "" : content + "&") + "content=" + URLEncoder.encode(textArea.getText());
if (debug > 0) System.err.println("Capture: " + content);
out.writeBytes(content);
out.flush();
out.close();
// retrieve response from the remote host and display it.
if (debug > 0) System.err.println("Capture: reading response");