Here is an attempt at creating a `dpaste.com.conf` file.
[pastebin] basename = dpaste.com regexp = http://dpaste.com
[format] user = poster content = content title = title language = language
[defaults] language = plain page = http://dpaste.com/api/v1/
However, I don't know how to parse the returned URL which should be output on the console containing the URL of the paste. It is returned in the HTTP header as `Location`. Example:
curl -is -F 'content=foobar' http://dpaste.com/api/v1/
Here is an attempt at creating a `dpaste.com.conf` file.
[pastebin] dpaste. com
basename = dpaste.com
regexp = http://
[format]
user = poster
content = content
title = title
language = language
[defaults] dpaste. com/api/ v1/
language = plain
page = http://
However, I don't know how to parse the returned URL which should be output on the console containing the URL of the paste. It is returned in the HTTP header as `Location`. Example:
curl -is -F 'content=foobar' http:// dpaste. com/api/ v1/