Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #80087
| Path | csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!feeder.erje.net!eu.feeder.erje.net!weretis.net!feeder4.news.weretis.net!feeds.phibee-telecom.net!newsfeed.xs4all.nl!newsfeed2.news.xs4all.nl!xs4all!newsgate.cistron.nl!newsgate.news.xs4all.nl!post.news.xs4all.nl!not-for-mail |
|---|---|
| Return-Path | <peterirbizon@gmail.com> |
| X-Original-To | python-list@python.org |
| Delivered-To | python-list@mail.python.org |
| X-Spam-Status | OK 0.054 |
| X-Spam-Evidence | '*H*': 0.89; '*S*': 0.00; 'skip:u 30': 0.07; "'')": 0.09; 'skip:$ 20': 0.09; 'subject:still': 0.09; 'def': 0.12; "');": 0.16; 'trying': 0.19; '8bit%:5': 0.22; 'script': 0.25; 'correct': 0.29; 'skip:p 30': 0.29; 'message-id:@mail.gmail.com': 0.30; 'class': 0.32; 'but': 0.35; 'received:google.com': 0.35; 'should': 0.36; 'to:addr:python-list': 0.38; 'to:addr:python.org': 0.39; 'how': 0.40; 'skip:n 30': 0.60; 'skip:+ 10': 0.65; '8bit%:21': 0.69; 'skip:r 30': 0.69; '\xc2\xa0\xc2\xa0': 0.74; 'skip:n 40': 0.81 |
| DKIM-Signature | v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:date:message-id:subject:from:to:content-type; bh=73OaUdnU5d+C7eEv3KwZ82HV3re+ZBt1/UgJKMLslEc=; b=h62jJ0f+zRrTXqrxGn24XJGbdIEFjVdxE9ihiuDeKW76ZXDaG3z0WtvwreYMj+Sjhc RCnDBnr0+mTBlZLtobdn45JRZsf5NQvstsVuabRE86FqjqTu+o+Tz/ufkAyTwMr3KW87 ogk1jngFjtOHxMId7GILtN5J+jyakEPIlr1IzOR5/bY7v4AbnR6LmEaGk8lixc2k1A7j ze7YwUPbtUX5cgtsdgEBUry/iMICu2iXlrCmHT0eEmtnevQSoE1jYhzA37H+4HVsGSg2 cDF6RRHGv9ZMGbIm8sUaoeO9mj73rYm17jtNleC0hNWeAFWpqBDp8BditHCIKnsUaE0j PpVg== |
| MIME-Version | 1.0 |
| X-Received | by 10.113.6.1 with SMTP id cq1mr12140341lbd.32.1414847223107; Sat, 01 Nov 2014 06:07:03 -0700 (PDT) |
| Date | Sat, 1 Nov 2014 14:07:01 +0100 |
| Subject | PYQT4 referer in javascript still blank |
| From | Peter Irbizon <peterirbizon@gmail.com> |
| To | Python <python-list@python.org> |
| Content-Type | multipart/alternative; boundary=001a11360f862517220506cbca3c |
| X-BeenThere | python-list@python.org |
| X-Mailman-Version | 2.1.15 |
| Precedence | list |
| List-Id | General discussion list for the Python programming language <python-list.python.org> |
| List-Unsubscribe | <https://mail.python.org/mailman/options/python-list>, <mailto:python-list-request@python.org?subject=unsubscribe> |
| List-Archive | <http://mail.python.org/pipermail/python-list/> |
| List-Post | <mailto:python-list@python.org> |
| List-Help | <mailto:python-list-request@python.org?subject=help> |
| List-Subscribe | <https://mail.python.org/mailman/listinfo/python-list>, <mailto:python-list-request@python.org?subject=subscribe> |
| Newsgroups | comp.lang.python |
| Message-ID | <mailman.15391.1414847230.18130.python-list@python.org> (permalink) |
| Lines | 52 |
| NNTP-Posting-Host | 2001:888:2000:d::a6 |
| X-Trace | 1414847230 news.xs4all.nl 2899 [2001:888:2000:d::a6]:46304 |
| X-Complaints-To | abuse@xs4all.nl |
| Xref | csiph.com comp.lang.python:80087 |
Show key headers only | View raw
[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 comp.lang.python | Previous | Next | Find similar | Unroll thread
PYQT4 referer in javascript still blank Peter Irbizon <peterirbizon@gmail.com> - 2014-11-01 14:07 +0100
csiph-web