firstly ,Thank you for all,
i think add this in the file wrapper.conf of the agent but nothing changes
wrapper.java.additional.8=-Dhttp.proxyHost=myproxy
wrapper.java.additional.9=-Dhttp.proxyPort=8080
wrapper.java.additional.10=-Dhttp.proxyUsername=...
wrapper.java.additional.11=-Dhttp.proxyPassword=..
so,speaking about the code source,how i can see the code source that means the class for the http connction ?, i must change it or just add new plugin in java ?
like this code
String url = "http://www.marchal.com/",
proxy = "proxy.mydomain.com",
port = "8080",
authentication = "usr:pwd";
URL server = new URL(url);
Socket socket = new Socket(proxy,port);
Writer writer = new OutputStreamWriter(socket.getOutputStream(),
"US-ASCII");
writer.write("GET " + server.toExternalForm() + " HTTP/1.0\r\n");
writer.write("Host: " + server.getHost() + "\r\n");
writer.write("Proxy-Authorization: Basic "
+ new sun.misc.BASE64Encoder().encode(
authentication.getBytes())
+ "\r\n\r\n");
writer.flush();
BufferedReader reader = new BufferedReader(new InputStreamReader(
socket.getInputStream(),"US-ASCII"));
String line = reader.readLine();
if(line != null && line.startsWith("HTTP/"))
{
int sp = line.indexOf(' ');
String status = line.substring(sp + 1,sp + 4);
if(status.equals("200"))
{
while(line.length() != 0)
line = reader.readLine();
readResponse(reader);
}
else
throw new FileNotFoundException("Host reports error " +
status);
}
else
throw new IOException("Bad protocol");
reader.close();
writer.close();
socket.close();
i'm sorry for spending your time, but the community isn't big 🙂