Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@hitorisensei/http-transfer-server

Package Overview
Dependencies
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@hitorisensei/http-transfer-server

Application that allows transferring files via HTTP protocol without size limit or storing any of the transferred data (excluding socket buffers).

  • 1.0.0
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
0
Maintainers
1
Weekly downloads
 
Created
Source

Description

Application that allows transferring files via HTTP protocol without size limit or storing any of the transferred data (excluding socket buffers).

Usage

After you start the server on [port], you can initiate transfer by using POST, eg using cURL:

curl -N --data-binary "@/file/to/transfer" "server[:port]"

eg.

curl -N --data-binary "@/var/logs/log.log" "https://transfer.example.com"

You will be prompted with GET address to fetch the file on the remote machine:

Awaiting GET /1d12c367-8e83-4cce-abb9-0eaee0a69f90
...

then you can then get the file using:

curl "https://transfer.example.com/1d12c367-8e83-4cce-abb9-0eaee0a69f90" >
log.log

You can also supply your own id in POST path:

curl -N --data-binary "@/var/logs/log.log"
"https://transfer.example.com/my-id"

then you can get the file using:

curl "https://transfer.example.com/my-id" > log.log

CLI

Options:
--version  Show version number                                   [boolean]
--port     Port at which to start HTTP server    [number] [default: 18080]
--timeout  Time allowed to wait for the GET command to fetch the file. (0
means indefinitely)                       [number] [default: 0]
--help     Show help                                             [boolean]

FAQs

Package last updated on 03 Jan 2022

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc