Discussion:
HttpOpenRequest sending "Referrer" instead of "Referer" why???!!
(too old to reply)
Chris Shearer Cooper
2008-04-15 02:03:45 UTC
Permalink
When I pass a referer URL as the 5th parameter to HttpOpenRequest(), the
resulting HTTP request has a line in the header for "Referrer:" where the
spec clearly shows the line should be "Referer:" (notice the extra 'r' in
the incorrect spelling).

I've seen some sites that hint that many web servers accept either spelling,
but I'm encountering one that insists on the correct spelling.

Is this a known bug? Is there a known workaround?

Thanks!
Chris
Volodymyr M. Shcherbyna
2008-04-16 15:15:40 UTC
Permalink
I've never checked this, but it can be easially fixed: simply pass NULL into
HttpOpenRequest and pass whatever header you want using
HttpAddRequestHeaders
--
V.
This posting is provided "AS IS" with no warranties, and confers no
rights.
Post by Chris Shearer Cooper
When I pass a referer URL as the 5th parameter to HttpOpenRequest(), the
resulting HTTP request has a line in the header for "Referrer:" where the
spec clearly shows the line should be "Referer:" (notice the extra 'r' in
the incorrect spelling).
I've seen some sites that hint that many web servers accept either
spelling, but I'm encountering one that insists on the correct spelling.
Is this a known bug? Is there a known workaround?
Thanks!
Chris
Loading...