I am not using PHP curls, but just running as a command line:
< Pre> curl-i-l-c cookie / my website's dot. TT-A 'Mozilla / 5.0 (Windows NT 6.1; WA64; RV: 36.0) Gecho / 20100101 Firefox / 36.0' https://www.mywebsite.com/
to print the results For, I'm receiving a set-cookie
in the header for PHPSESSID, so the site is setting a session cookie on the initial contact, and I confirm the cookie jar file Cookies / mywebsite.com.txt
is set with this information.
However, I think that curl, on the next page call I (for example, https://www.mywebsite.com/about-us
), the previous page's cookie Not sending information, as I've noticed that I'm getting the set-cookie
once again with the header line, but with a different PHPSESSID value.
Is there any way to confirm this, and what could be the reason for this?
Note: The permissions cookie jar file is owned by iWww-data (Apache User) and it is also clearly written that this is not just issuing session, and I do not know how to know That curl is sending out as a header, only what he is getting.
To send and receive cookies, I think that I would like to -b
And -c
are required to do the following:
curl -i-l-b cookies / mywebsite.com -c cookies / mywebsite.com .txt -A 'Mozilla / 5.0 (Windows NT 6.1; WV64; rv: 36.0) Gecko / 20100101 Firefox / 36.0' https://www.mywebsite.com/
I section here The last example found in 9.2 and used:
Except that I use it clearly for both of them File name
The solution to this problem. Hope this helps someone else.
No comments:
Post a Comment