Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Can cURL work off of the brower's cookies?

Status
Not open for further replies.

748323

Programmer
Dec 10, 2004
70
US
I know how to use cURL, but I've always had to manually plug cookies into the script. Can cURL work off of the browsers cookies?

This would probably be very dangerous, so I doubt it can, but its worth knowing. Thanks.
 
You could do that, but only if your script has access to the cookies you need, then you would have to manually set them, or save them to a file. You could just have curl save the cookies between executions ("sessions") and then you wouldn't have to have it passed each time.

HTH,
Gavin
 
You can use anything that the browser send you. Have you inspected the $_COOKIE[] superglobal array?
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top