Closed (fixed)
Project:
HTTP Parallel Request & Threading Library
Version:
7.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
28 Jan 2012 at 14:35 UTC
Updated:
15 Feb 2012 at 23:20 UTC
Jump to comment: Most recent file
Comments
Comment #1
hass commentedI'm not able to unset the referer. I tried NULL, and ''. Header is still added.
Comment #2
hass commentedIf a module needs an referrer (I do not know why), it can set it, but don't set a wrong referrer by default that cannot overridden.
Patch attached.
Comment #3
mikeytown2 commentedHaving the referrer is pretty nice from my point of view. I got to run, (will be back tomorrow) but I'm thinking default is referrer is not sent (referrer == FALSE); if referrer == TRUE use current page; if referrer is string then use the string.
Comment #4
mikeytown2 commentedComment #5
hass commentedBut it's a server process... not an interactive user browsing a page. This is not what the referrer was made for... It will confuse other people... It may be useful for edge cases to fakes a referrer... But this are rare exceptions. Sending admin path as referrer can lead to security issues (informatin disclosure)! The same may happen if we are sending out the cron url with the authentication hashes... :-(((
Comment #6
mikeytown2 commentedSomething like this is what I was thinking.
Comment #7
mikeytown2 commentedCommitted to 6.x & 7.x
Comment #8
hass commentedWell I understood this, but it is very limiting. I'm now not able to set a custom referrer... Maybe i need to fake a specific referrer.
Comment #9
hass commentedThere is a typo "Referer", isn't it?
Comment #10
mikeytown2 commentedReferer is "correct" http://en.wikipedia.org/wiki/HTTP_referer
If you set the Referer in the header it will use that value.
Comment #11
hass commentedShould we make it consistend - wrong? :-)
Comment #12
mikeytown2 commentedin JS it is referrer http://www.w3schools.com/jsref/prop_doc_referrer.asp. There is no consistent way, so I'll go with the correct spelling in my API and use "Referer" in the header.