Skip Menu |

This queue is for tickets about the WWW-Pastebin-PastebinCom-Create CPAN distribution.

Report information
The Basics
Id: 133541
Status: new
Priority: 0/
Queue: WWW-Pastebin-PastebinCom-Create

People
Owner: Nobody in particular
Requestors: jkahrman [...] mathworks.com
Cc: ether [...] cpan.org
AdminCc:

Bug Information
Severity: (no value)
Broken in: (no value)
Fixed in: (no value)



CC: ether [...] cpan.org
Subject: Module incompatible with current pastebin.com
Sometime after 7/18/2020, pastebin.com redid the form that WWW-Pastebin-PastebinCom-Create is attempting to use. The form name and field names have all been changed. I attempted to update it to the new names, but the submit still fails with a 404. @@ -36,15 +36,15 @@ $mech->get('http://pastebin.com'); $mech->success or return $self->_set_mech_error($mech); - $mech->form_name('myform') + $mech->form_id('w0') or return $self->_set_error('Paste form not found'); $mech->set_fields( - paste_code => $args{text}, - paste_format => $args{format}, - paste_expire_date => $args{expiry}, - paste_private => $args{private}, - paste_name => $args{desc}, + 'PostForm[text]' => $args{text}, + 'PostForm[format]' => $args{format}, + 'PostForm[expiration]' => $args{expiry}, + 'PostForm[status]' => $args{private}, + 'PostForm[name]' => $args{desc}, ); $mech->submit; $mech->success or return $self->_set_mech_error($mech); @@ -675,4 +675,3 @@