isoos / http_client

https://pub.dartlang.org/packages/http_client
BSD 3-Clause "New" or "Revised" License
13 stars 6 forks source link

socks4 and socks4a curl support #5

Closed utopicnarwhal closed 4 years ago

utopicnarwhal commented 4 years ago

Can you add other socks types support for curl?

isoos commented 4 years ago

I'm happy to take PRs :)

utopicnarwhal commented 4 years ago

this is my first PR. done: https://github.com/isoos/http_client/pull/6

0wzZZzz6 commented 3 years ago

when using socks5, how to setup the auth of proxy?

isoos commented 3 years ago

How do you set it up for command line curl?

0wzZZzz6 commented 3 years ago

@isoos I dont know how. is it possible to use socks5 with auth with your work sir?

isoos commented 3 years ago

@0wzZZzz6 I'm no curl expert, sorry. If you figure it out with curl, it will be possible to support it via command-line arguments. The harder path would be to support it natively by implementing socks protocols, but I have even less experience with that.

0wzZZzz6 commented 3 years ago

when using username:password@server_ip:port I got an error saying permission denied even if its correct.

0wzZZzz6 commented 3 years ago

I keep on testing it on a emulator. but now I tested it on real device. It works! thanks