Commit 7e214984 authored by Birte Kristina Friesel's avatar Birte Kristina Friesel
Browse files

VRR.pm: HTTP request error handling

parent f9fa576b
Loading
Loading
Loading
Loading
+5 −0
Original line number Diff line number Diff line
@@ -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