[Suggestion] Ability to upload data to katb.in from command line via curl #5

Closed
opened 2021-07-28 15:17:42 +00:00 by tur1ngb0x · 1 comment
tur1ngb0x commented 2021-07-28 15:17:42 +00:00 (Migrated from github.com)

It would be nice to have a functionality similar to

$ command | curl -F 'f:1=<-' ix.io

example

$ cat /etc/fstab | curl -F 'f:1=<-' ix.io

output
http://ix.io/3ukb

It would be nice to have a functionality similar to `$ command | curl -F 'f:1=<-' ix.io` example `$ cat /etc/fstab | curl -F 'f:1=<-' ix.io` output http://ix.io/3ukb
SphericalKat commented 2022-05-28 05:38:00 +00:00 (Migrated from github.com)

curl -X POST https://katb.in/api/paste --data-binary "paste[content]=$(cat log.txt)"

`curl -X POST https://katb.in/api/paste --data-binary "paste[content]=$(cat log.txt)"`
Sign in to join this conversation.
No Milestone
No project
No Assignees
1 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: sphericalkat/katbin#5
No description provided.