I think I'm on the right track right now...Rather than using the convenience function "get" I am modifying it to do the following:
QHttpRequestHeader header("GET", sFilename );
header.setValue("Host", sHost );
header.setValue("If-Modified-Since", sFileDate);
http->setHost( sHost );
http->request(header);
I'm still working on this. The main problem I was having is that I was using the "get" convenience function which didn't seem to have the ability to send custom headers. After I get my request correct, I assume that in my readResponseHeader callback I need to add a case for response code "304" (I'm currently aborting the transfer if I don't get 200)
So I think I'm on the right track...I should be done with the whole project in a couple of days, once I'm done I'll post a link to the code in this thread.





Reply With Quote
Bookmarks