isoos / http_client

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

curl socks5 post request. #8

Closed 0wzZZzz6 closed 3 years ago

0wzZZzz6 commented 3 years ago

When I tried to put a body in my request I get this error.

[ERROR:flutter/lib/ui/ui_dart_state.cc(177)] Unhandled Exception: Exception: Sending body is not yet supported.

andresruizdev commented 3 years ago

Same error here... Searching a bit through the code, I found that plugin does not support any request with body using curl. image

isoos commented 3 years ago

The long term solution should be adopting a socks5 library like this, instead of calling curl. Anybody interested in contributing to it?

andresruizdev commented 3 years ago

My first Pull Request is to partially add body and Post support to CURL client, this will close this issue. Please check: #9