Subject: | Double url encoding of application name causing netflix 401 error |
My application name contains a space. This resulted in me getting a 401
error back form the netflix API:
<status>
<status_code>401</status_code>
<message>Application name Mismatch </message>
</status>
my $application_name = $response->extra_params->{application_name};
I was able to hack the library and get it to work by url decoding the
application name.
my $application_name = $response->extra_params->{application_name};
$application_name =~ s/%([A-Fa-f0-9]{2})/pack('C', hex($1))/seg;
$application_name =~ tr/+/ /;