in reply to POST fieldnames with underscores
For HTTP-headers there seems to be a conversion. From HTTP::Headers (used by HTTP::Request::Common via HTTP::Message):
ON-CANONICALIZED FIELD NAMES
The header field name spelling is normally canonicalized including the '_' to '-' translation. There are some application where this is not appropriate. Prefixing field names with ':' allow you to force a specific spelling. For example if you really want a header field name to show up as "foo_bar" instead of "Foo-Bar", you might set it like this:
$h->header(":foo_bar" => 1);
Assuming, you want to post a list of variables, do transfer them as content
(application/x-www-form-urlencoded), not as HTTP-headers.
Please check POST method invocation parameters (order/names) or post the specific lines,
where you're creating the POST request, for further analysis.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: POST fieldnames with underscores
by BernieC (Pilgrim) on Aug 11, 2018 at 23:30 UTC | |
by Perlbotics (Archbishop) on Aug 12, 2018 at 09:50 UTC | |
by BernieC (Pilgrim) on Aug 12, 2018 at 18:54 UTC | |
by Perlbotics (Archbishop) on Aug 12, 2018 at 20:15 UTC | |
by marto (Cardinal) on Aug 13, 2018 at 07:08 UTC |