[prev in list] [next in list] [prev in thread] [next in thread] 

List:       pykde
Subject:    Re: [PyQt] QNetworkRequest::setAttribute(Attribute code, const QVariant &value)
From:       Florian Bruhin <me () the-compiler ! org>
Date:       2016-05-16 13:03:09
Message-ID: 20160516130309.GD560 () tonks
[Download RAW message or body]

This is a MIME-formatted message.  If you see this text it means that your
E-mail software does not support MIME-formatted messages.

[Attachment #2 (multipart/signed)]
This is a MIME-formatted message.  If you see this text it means that your
E-mail software does not support MIME-formatted messages.


* redstone-cold <redstone-cold@163.com> [2016-05-15 18:09:59 +0800]:
> I want to let my application to follow redirections, then it seems I should use 
> void QNetworkRequest::setAttribute(Attribute code, const QVariant &value)
> http://doc.qt.io/qt-5/qnetworkrequest.html#setAttribute
> 
> 
> I think the attribute to set should be QNetworkRequest::FollowRedirectsAttribute, \
> but I don't know what value to set for the second parameter , any suggestions? 

Since FollowRedirectsAttribute is described as a bool, have you tried
True?

Florian

-- 
http://www.the-compiler.org | me@the-compiler.org (Mail/XMPP)
   GPG: 916E B0C8 FD55 A072 | http://the-compiler.org/pubkey.asc
         I love long mails! | http://email.is-not-s.ms/


["signature.asc" (application/pgp-signature)]
[Attachment #6 (text/plain)]

_______________________________________________
PyQt mailing list    PyQt@riverbankcomputing.com
https://www.riverbankcomputing.com/mailman/listinfo/pyqt

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic