hoehrmann / CutyCapt

A Qt WebKit Web Page Rendering Capture Utility
http://cutycapt.sourceforge.net/
99 stars 49 forks source link

<img> doesn't get cookie #6

Open sebhaase opened 10 years ago

sebhaase commented 10 years ago

change CutyNetworkAccessManager to set rawheaders on seconday requests

If I use --header=Cookie:sessionid=... the cookie is not send to on the referenced in the primary page. The solutions should looke like:

req2.setRawHeader(header_1_key, header_1_val);

in a derived QNetworkAccessManager class QNetworkAccessManager::createRequest() method.

sebhaase commented 10 years ago

ref. http://stackoverflow.com/questions/2095365/setrawheader-doesnt-follow-elements-in-the-web-view