ffsend icon indicating copy to clipboard operation
ffsend copied to clipboard

ffsend does not respect http_proxy settings

Open WSQi opened this issue 5 years ago • 1 comments

Thank you for your effort on this amazing tool.

However, ffsend is not working behind HTTP proxy environment

D:\>ffsend -V
ffsend 0.2.44

D:\>set http_proxy=http://localhost:8888

D:\>set https_proxy=http://localhost:8888

D:\>echo %http_proxy%
http://localhost:8888

D:\>echo %https_proxy%
http://localhost:8888

D:\>ffsend download https://send.firefox.com/download/e964034c63ea4200/#eDr-No69mmDs_QCk3Ui5MA
error: failed to follow share URL, ignoring
error: failed to download the requested file
caused by: failed to select API version to use
caused by: failed to send request to fetch server version

For detailed errors try '--verbose'
For more information try '--help'

D:\>curl  https://send.firefox.com/download/e964034c63ea4200/#eDr-No69mmDs_QCk3Ui5MA

    <!DOCTYPE html>
    <html lang="en-US">
      <head>
        <title>Firefox Send</title>
        <base href="/" />
        <meta name="robots" content="none,noarchive" />
        <meta name="google" content="nositelinkssearchbox" />
        <meta http-equiv="X-UA-Compatible" content="IE=edge" />
        <meta charset="utf-8" />
        <meta name="viewport" content="width=device-width, initial-scale=1" />
		........

curl has no problem connect to https://send.firefox.com, but ffsend does not even send request to fiddler.

image

WSQi avatar Apr 09 '19 06:04 WSQi

Thank you.

You're right. I've started implementing it, but I hit a roadblock. Uploading files is done through a websocket, and I don't seem to be able to route this websocket through a proxy right now, due to the library being used not having support for it. This is of course required to complete the implementation for proxy support.

The git branch that has the first part of the implementation will hit Fiddlr, but uploads will fail at this time.

See this issue: https://gitlab.com/timvisee/ffsend/issues/74

timvisee avatar Apr 09 '19 08:04 timvisee