Qt-interest Archive, May 2007
crazy with responseHeaderReceived(QHttpResponseHeader)
Message 1 in thread
Hi list,
I have this connect so that I know when can I get the cookie from the
response http header,
connect(http, SIGNAL(responseHeaderReceived(QHttpResponseHeader)), this,
SLOT(getCookie(QHttpResponseHeader)));
and then, getCookie(QHttpResponseHeader) has:
void Http::getCookie(QHttpResponseHeader response) {
cout << "This is when we think we already have our header\n" << endl;
if ( response.isValid() ) {
.
.
.
but my app crashes with:
#0 0x00002ba122742960 in QHttpHeader::isValid () from
/usr/lib/libQtNetwork.so.4
#1 0x0000000000406fa7 in Http::getCookie (this=<value optimized out>,
response=@0x0) at http/http.cpp:51
am I doing something wrong, or is this a bug? QT is version 4.3.0rc1.
Thank you
--
[ signature omitted ]
Message 2 in thread
Fixed.
should have been: (const QHttpResponseHeader &responseHeader)
sorry
André Lemos wrote:
> Hi list,
>
> I have this connect so that I know when can I get the cookie from the
> response http header,
>
>
> connect(http, SIGNAL(responseHeaderReceived(QHttpResponseHeader)),
> this, SLOT(getCookie(QHttpResponseHeader)));
>
>
> and then, getCookie(QHttpResponseHeader) has:
>
>
> void Http::getCookie(QHttpResponseHeader response) {
>
> cout << "This is when we think we already have our header\n" <<
> endl;
>
> if ( response.isValid() ) {
>
> .
> .
> .
>
>
>
> but my app crashes with:
>
> #0 0x00002ba122742960 in QHttpHeader::isValid () from
> /usr/lib/libQtNetwork.so.4
> #1 0x0000000000406fa7 in Http::getCookie (this=<value optimized out>,
> response=@0x0) at http/http.cpp:51
>
>
> am I doing something wrong, or is this a bug? QT is version 4.3.0rc1.
>
>
>
> Thank you
>
> --
> To unsubscribe - send a mail to qt-interest-request@xxxxxxxxxxxxx with
> "unsubscribe" in the subject or the body.
> List archive and information: http://lists.trolltech.com/qt-interest/
>
--
[ signature omitted ]