Closed prRZ5F4LXZ closed 1 year ago
The WebDriver classic specification can be found at https://w3c.github.io/webdriver/. The link you gave is outdated.
Nevertheless I'm not sure what you are referring to here. Nothing in the spec actually says that a referrer
header is actually supported. Could you please give more details? Thanks.
https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Referer
Firefox can send a request with the Referer field. I want to mimic this behavior.
As you said the webdriver spec does not mention a way to specify Referer. Therefore, I think there is no way to send a request with Referer specified. Since geckodrive conforms with the webdriver standard, I don't think geckodrive supports it either. I just want to confirm whether this is the case.
Yes, it's also not a feature that is planned for the WebDriver classic specification. But there will be an API for network interception for WebDriver BiDi. So that will allow you to do that.
Just to be sure. You said "will". So the referer feature is still not available in BiDi?
Correct. See the issue that I have referenced in my last comment.
https://www.w3.org/TR/webdriver1/#dfn-navigate-to
I don't see a way to specific the Referer header in the above endpoint according to webdriver standard. As such, my understanding is that geckodriver doesn't support this feature either. Is it so?
System
Testcase
NA
Stacktrace
NA
Trace-level log
NA