AnsweredAssumed Answered

Cookies from request

Question asked by gwaltersinfor on Jul 15, 2019
Latest reply on Aug 28, 2019 by gwaltersinfor

Hi,

 

I have an API that I want to access that stores the authentication information in a cookie.

 

I can successfully make the initial login request, however the second request to add data doesn't work as I can't access the cookies that were created from the initial request (or should be).

 

I can do the testing in Postman, but nothing happens if I take the http code and make a couple of NetworkRequests or even a function based on the html code from Postman.

 

I have read the docs and it looks like I need to access the QNetworkCookieJar to get this done (which currently isn't available) unless there is some wise advice from the QML experts that could help.

 

Look forward to hearing from someone

Outcomes