Results 1 to 2 of 2
- 01-11-2010, 09:23 PM #1
Member
- Join Date
- Nov 2009
- Posts
- 12
- Rep Power
- 0
Socks 4
how do you send a connect request to socks4 server?
this is what i use..
and the output i got..Java 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..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!
- 01-12-2010, 01:49 PM #2
Member
- Join Date
- Nov 2009
- Posts
- 12
- Rep Power
- 0
Similar Threads
-
Socks via HTTP 1.2
By JavaBean in forum Java SoftwareReplies: 0Last Post: 06-26-2007, 09:40 PM


1Likes
LinkBack URL
About LinkBacks

Bookmarks