Newsgroups : Microsoft : microsoft.public.inetsdk.programming.wininet : 2008 Apr : HttpOpenRequest sending "Referrer" instead of "Referer" why???!!

www.cryer.info
Managed Newsgroup Archive

HttpOpenRequest sending "Referrer" instead of "Referer" why???!!

Subject:HttpOpenRequest sending "Referrer" instead of "Referer" why???!!
Posted by:"Chris Shearer Cooper" (chris_w..@sc3.net)
Date:Mon, 14 Apr 2008 20:03:45

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

Replies:

www.cryer.info
Managed Newsgroup Archive