Giter Site home page Giter Site logo

socks_proxy's People

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

socks_proxy's Issues

Unhandled exception: Null check operator used on a null value

SocksProxy.initProxy(proxy: 'SOCKS5 185.105.89.38:27022');
  await HttpClient()
      .getUrl(Uri.parse(
          'https://raw.githubusercontent.com/tayoji-io/socks_proxy/master/README.md'))
      .then((value) {
        return value.close();
      })
      .then((value) {
        return value.transform(utf8.decoder);
      })
      .then((value) {
        return value.fold(
            '', (dynamic previous, element) => previous + element);
      })
      .then((value) => print(value))
      .catchError((e) => print(e));

library code:
image
error:
image

fix:
image

I do not know if it is correct but it works

'SameSite' not found

Hi, the type SameSite is missing in the package. I'm getting Error: Type 'SameSite' not found.

Request with headers

Can't find how to make requests with headers.

For example, with regular HTTP request we can use

Future<Album> fetchAlbum() async {
  final response = await http.get(
    Uri.parse('https://jsonplaceholder.typicode.com/albums/1'),
    // Send authorization headers to the backend.
    headers: {
      HttpHeaders.authorizationHeader: 'Basic your_api_token_here',
    },
  );

How we can do the same with the proxy?

can't access non ssl (http) api while set socks4/5 proxy

when i set socks4/5 external proxy like 192.111.139.165:4145

 SocksProxy.initProxy(
    proxy: 'SOCKS5 192.111.139.165:4145',
    onCreate: (client) {
      client.badCertificateCallback =
          (X509Certificate cert, String host, int port) => true;
    },

then i cant access http aips and get this error

Unhandled Exception: Connection reset by peer

by setting internal proxy like 127.0.0.1:2081, i get different error

Unhandled Exception: Connection closed before full header was received

it woks fine with https apis and i don't have this problem with http PROXY IP:PORT proxies.

Doc typo

The import statement used in the docs is incorrect.

It needs to be:

import 'package:flutter_socks_proxy/socks_proxy.dart';

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.