Update README.md

This commit is contained in:
skyper
2023-09-18 12:21:31 +01:00
committed by GitHub
parent 5063139f70
commit 9bf56e48b7
+20 -1
View File
@@ -882,8 +882,9 @@ gs-netcat >"FILENAME" # When prompted, enter the SECRET from the sender
```
<a id="http"></a>
### 4.v. File transfer - using HTTP
### 4.v. File transfer - using HTTPs
#### Download from Server to Receiver:
```sh
## Spawn a temporary HTTP server and share the current working directory.
python -m http.server 8080
@@ -893,6 +894,24 @@ python -m http.server 8080
## Request a temporary tunnel on a public domain
cloudflared tunnel -url localhost:8080
```
Receiver: Access the URL from any browser to view/download the remote file system.
#### Upload from Sender to Receiver:
```sh
## Spawn an upload server on the Receiver:
pip install uploadserver
python -m uploadserver
```
```sh
## Make it available through a public domain
cloudflared tunnel -url localhost:8000
```
On the Sender:
```sh
curl -X POST https://CF-URL-CHANGE-ME.trycloudflare.com/upload -F 'files=@myfile.txt'
```
<a id="burl"></a>
### 4.vi. File transfer without curl