Skip to main content

IIS Server Variables: underscore and dash

June 16, 2014 mgroves 0 Comments
Tags: ASP Classic HTTP

Here's a little weirdness that I discovered this week. (I think this may just apply to ASP Classic but I'm not 100% sure).

I was writing some ASP Classic that reads some information from HTTP headers (which are put into the request from a mobile application). For some reason, the data wasn't showing up:

Turns out that the server replaces underscores with dashes. At first, this was just a wild guess on my part, but luckily it worked out.

A bit annoying, but I guess I learned something new!

Comments

Matthew D. Groves

About the Author

Matthew D. Groves lives in Central Ohio. He works remotely, loves to code, and is a Microsoft MVP.

Latest Comments

Twitter