Skip to content

Instantly share code, notes, and snippets.

@robertranjan
robertranjan / upload.go
Last active October 16, 2020 21:24 — forked from ebraminio/upload.go
golang upload client and server
// curl -X POST -H "Content-Type: application/octet-stream" --data-binary '@filename' http://127.0.0.1:5050/upload
package main
import (
"fmt"
"io"
"net/http"
"os"
// "time"