How to change "referer" of request header
-
-
My qt version is 5.8. I set "referer" in QWebEngineUrlRequestInterceptor, but it doesn't work! The code likes this:
void TWebEngineUrlRequestInterceptor::interceptRequest(QWebEngineUrlRequestInfo &info) { info.setHttpHeader("Referer", "xxxxxxxx"); }
@youthdou said in How to change "referer" of request header:
but it doesn't work
enlighten us please.
-
-
@youthdou
yes, very enlightening...
So we can continue guessing what you want us to say by posting the link without any further words. -
@youthdou
I'm not a Qt representative so I don't know what you do about it, but that link states it's an open/unresolved bug which prevents the Referer Header being altered from Qt. Unless you are compiling Qt yourself and can follow the Old/New Code there to make the change to allow it, I think.... -
@youthdou
yes, very enlightening...
So we can continue guessing what you want us to say by posting the link without any further words.@raven-worx
I have sovled it by compiling Qt. But I think there should be some tips in QT documents to describe it.