Skip to content
Snippets Groups Projects
Commit 7e214984 authored by Birte Kristina Friesel's avatar Birte Kristina Friesel
Browse files

VRR.pm: HTTP request error handling

parent f9fa576b
No related branches found
No related tags found
No related merge requests found
......@@ -448,6 +448,11 @@ sub submit {
my $response = $self->{ua}
->post( 'http://efa.vrr.de/vrr/XSLT_TRIP_REQUEST2', $self->{post} );
if ( $response->is_error ) {
my $errstr = $response->status_line;
confess("Could not submit POST request: ${errstr}");
}
# XXX (workaround)
# The content actually is iso-8859-1. But HTML::Message doesn't actually
# decode character strings when they have that encoding. However, it
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment