Comment 2 for bug 1216322

Revision history for this message
Marco Patzer (mpfusion) wrote :

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/