Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #80087 > unrolled thread
| Started by | Peter Irbizon <peterirbizon@gmail.com> |
|---|---|
| First post | 2014-11-01 14:07 +0100 |
| Last post | 2014-11-01 14:07 +0100 |
| Articles | 1 — 1 participant |
Back to article view | Back to comp.lang.python
PYQT4 referer in javascript still blank Peter Irbizon <peterirbizon@gmail.com> - 2014-11-01 14:07 +0100
| From | Peter Irbizon <peterirbizon@gmail.com> |
|---|---|
| Date | 2014-11-01 14:07 +0100 |
| Subject | PYQT4 referer in javascript still blank |
| Message-ID | <mailman.15391.1414847230.18130.python-list@python.org> |
[Multipart message — attachments visible in raw view] — view raw
Hello,
I am trying to set referrer for my script this way in PYQT4:
class NetworkManager(QNetworkAccessManager):
def createRequest(self, op, req, outgoing_data):
req.setRawHeader('Referer', 'http://www.my-university.com/')
req.setRawHeader('Accept-Language', 'en')
return super(NetworkManager, self).createRequest(op, req,
outgoing_data)
but when I use javascript document.write('js ref: ' + document.referrer
+'<br>'); on my website it still returns empty line.
When I use php $_SERVER["HTTP_REFERER"] it returns correct referer.
How should I make it working for javascript as well?
Back to top | Article view | comp.lang.python
csiph-web