serverreview-benchmark
serverreview-benchmark copied to clipboard
how to paste files to https://privatebin.info
how to add paste file to https://privatebin.net
case $1 in
'ubuntu')
share_link=$( curl -v --data-urlencode "content@$log" -d "poster=bench.log" -d "syntax=text" "https://paste.ubuntu.com" 2>&1 |
grep "Location" | awk '{print $3}' );;
'haste' )
share_link=$( curl -X POST -s -d "$(cat $log)" https://hastebin.com/documents | awk -F '"' '{print "https://hastebin.com/"$4}' );;
'clbin' )
share_link=$( curl -sF 'clbin=<-' https://clbin.com < $log );;
'ptpb' )
share_link=$( curl -sF c=@- https://ptpb.pw/?u=1 < $log );;
Any api or curl example I can look at?