Beefy Boxes and Bandwidth Generously Provided by pair Networks
Syntactic Confectionery Delight
 
PerlMonks  

Re: double underscore in http-header

by kennethk (Abbot)
on Jan 12, 2017 at 19:43 UTC ( [id://1179462]=note: print w/replies, xml ) Need Help??


in reply to double underscore in http-header

This is a result of underscore-to-hyphen translation as a default in CGI. It looks like there is a solution in Underscores changed to hyphens by HTTP::Proxy header filter which I found with HTTP::Request underscore (though not the first hit).

#11929 First ask yourself `How would I do this without a computer?' Then have the computer do it the same way.

Replies are listed 'Best First'.
Re^2: double underscore in http-header
by morgon (Priest) on Jan 12, 2017 at 19:54 UTC
    Ok, you probably want to reprimand me for not searching enough (fair enough) and the link you provide seems to answer my second question (how to turn this off) but does anybody know why this feature exists at all?
      Why underscores are forbidden in HTTP header names addresses it sort of, but really doesn't get into the initial design rationale. I didn't know about this "feature" until this thread.

      #11929 First ask yourself `How would I do this without a computer?' Then have the computer do it the same way.

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://1179462]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others studying the Monastery: (5)
As of 2024-04-19 05:55 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found