v0l / socks5

SOCKS5 implemented in dart
GNU General Public License v3.0
3 stars 2 forks source link

get or post request. #2

Closed 0wzZZzz6 closed 3 years ago

0wzZZzz6 commented 4 years ago

I have a authenticated proxy and managed a connection.

But the problem was I dont know how to set a get or post request using proxy.

v0l commented 4 years ago

A socks proxy simply accepts a command to connect to another server, this is only at the TCP layer not HTTP layer, Once you have request the socks proxy to connect to the remote server then you would simply issue an HTTP request on the same socket.

If you only need the socks proxy for HTTP it might be better if you try to use this: https://api.dart.dev/stable/2.9.3/dart-io/HttpClient/findProxy.html