Redirect request and response headers.
Posted: Fri Mar 15, 2019 12:18 pm
Thanks for the answer in the previous post.
Now the problem is next - a request is made to the login.php page, which sets cookies upon successful authorization and redirects to the work_surfer.php page. In the Chrome browser, the developer’s tools show the response headers (login.php page):
In oldcef4delphi in the deltools response heders looks like:
Why DevTools oldCEF4Delphi not see headers "Set-Cookie"? And how to access the response headers on the redirect page? Event OnResourceResponse not trigger on login.php page, it trigger only work_surfer.php page. I need to catch the creation of cookies and substitute a parameter in the request on page work_surfer.php
Now the problem is next - a request is made to the login.php page, which sets cookies upon successful authorization and redirects to the work_surfer.php page. In the Chrome browser, the developer’s tools show the response headers (login.php page):
Code: Select all
Cache-Control: no-store, no-cache, must-revalidate, post-check=0, pre-check=0
Connection: keep-alive
Content-Encoding: gzip
Content-Length: 20
Content-Type: text/html; charset=utf-8
Date: Fri, 15 Mar 2019 11:11:42 GMT
Expires: Thu, 19 Nov 1981 08:52:00 GMT
Location: /work_surfer.php
Pragma: no-cache
Set-Cookie: sess=0OqmaKkTuk0b; path=/; domain=ipgold.ru
Set-Cookie: login=igor666; expires=Mon, 14-Mar-2022 11:11:42 GMT; Max-Age=94608000; path=/; domain=ipgold.ru
Vary: Accept-Encoding
X-Powered-By: PHP/5.6.33
Code: Select all
Cache-Control:no-store, no-cache, must-revalidate, post-check=0, pre-check=0
Connection:close
Content-Encoding:gzip
Content-Length:20
Content-Type:text/html; charset=utf-8
Date:Fri, 15 Mar 2019 12:05:09 GMT
Expires:Thu, 19 Nov 1981 08:52:00 GMT
Location:/work_surfer.php
Pragma:no-cache
Server:Apache/2.2.22 (Unix) PHP/5.6.33
Vary:Accept-Encoding
X-Powered-By:PHP/5.6.33