in reply to REST::Client GET with custom http headers authentication
Hi,
the only thing which comes to my mind at the moment is the following: In the depth of REST::Client headers are handled by HTTP::Headers. This module makes some "header sanitizing" which could cause your problem. Look here:
Your headers 'u' and 'p' are converted to uppercase.#!/usr/bin/perl use warnings; use strict; use HTTP::Headers; my $h = HTTP::Headers->new; $h->header('Content-Type' => 'text/plain'); # set $h->header('u' => 'user'); $h->header('p' => 'password'); print $h->as_string, "\n";
Just a guess. Besides of that: Custom headers should use the X-blabla-namespace, in your case e.g. X-u and X-p.
McA
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: REST::Client GET with custom http headers authentication
by Anonymous Monk on Feb 14, 2014 at 21:43 UTC | |
by Anonymous Monk on Feb 15, 2014 at 00:45 UTC | |
by Anonymous Monk on Feb 15, 2014 at 01:34 UTC | |
by Anonymous Monk on Feb 15, 2014 at 06:28 UTC | |
by Anonymous Monk on Feb 15, 2014 at 22:18 UTC | |
by Anonymous Monk on Feb 15, 2014 at 01:48 UTC |