how do you send a connect request to socks4 server?
this is what i use..
and the output i got..Code:socket = new Socket(_proxy,proxyPort);
DataOutputStream writer = new DataOutputStream(socket.getOutputStream());
BufferedReader reader = new BufferedReader(new InputStreamReader(socket.getInputStream()));
writer.writeBytes("4 1 27 88 140 211 166 3 0");
writer.flush();
String a;
while ((a = reader.readLine()) != null) {
System.out.println(a);
}
i think the method i use to send connect request is wrong..Quote:
HTTP/1.0 404 Proxy Error
Content-type: text/html
Pragma: no-cache
Cache-control: no-cache
Content-length: 238
<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">
<html><head><title>Proxy Error</title></head>
<body><h1>Proxy Error</h1>
The proxy server could not handle this request.
<p>
<b>Error reading from remote server</b>
</body></html>
so anyone can help?
tq alot! really appreciate it!
