wrt paste.debian.net we'd need to look in the response body for an error "<div class=status> \nCould not add your entry to the paste database:<br><br>\n<b>Thanks to some spammers you need to provide at least 3 or two linebreaks</b><br>\n\n</div>" as the response code is 200 whether or not the paste succeeded. Furthermore, I suggest we interface with debian paste's api rather than attempting to submit directly through the website. The clients page for debian is a bit misleading as it states pastebinit uses the xmlrpc already
wrt paste.debian.net we'd need to look in the response body for an error "<div class=status> \nCould not add your entry to the paste database: <br><br> \n<b>Thanks to some spammers you need to provide at least 3 or two linebreaks< /b><br> \n\n</div> " as the response code is 200 whether or not the paste succeeded. Furthermore, I suggest we interface with debian paste's api rather than attempting to submit directly through the website. The clients page for debian is a bit misleading as it states pastebinit uses the xmlrpc already
http:// paste.debian. net/paste. pl?show_ template= clients
However, that is not the case. So without a proper response I don't see another way to detect for error other than parsing the response body