Hi,
How can I set HTTP header name and value in httpclient?
i have the following example, I would like to know how can setup http
header name and value?
String loadUrl = "http://127.0.0.1:8080/video";
GetMethod method = new GetMethod(loadUrl);
try {
// Execute the method.
int statusCode = client.executeMethod(method);
if (statusCode != HttpStatus.SC_OK) {
System.err.println("Method failed: " +
method.getStatusLine());
}
} catch (Throwable e) {
}
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]