News Feed
Sections




News Archive
Looking for more information on how to do PHP the right way? Check out PHP: The Right Way

Philip Norton's Blog:
Netscape HTTP Cooke File Parser In PHP
June 30, 2011 @ 09:09:00

Philip Norton has shared a script he's created in a new post today that lets you read from a Netscape-formatted cookie file (as outputted from a curl request).

This file is generated by PHP when it runs CURL (with the appropriate options enabled) and can be used in subsequent CURL calls. This file can be read to see what cookies where created after CURL has finished running. As an example, this is the sort of file that might be created during a typical CURL call.

The file is structured, plain-text content with information on the domain, path, security, name and expiration details of each cookie. His script parses out these details and pushes them into a basic array, prime for searching and sorting (and reuse) in your application.

0 comments voice your opinion now!
netscape http cookie file curl output


blog comments powered by Disqus

Similar Posts

PHPit.net: Having fun with PHP\'s output buffer

InformBank.com: How to create Microsoft Office documents on the fly using PHP

Nick Halstead's Blog: Programming Tips #9 "debug_backtrace"

Demian Turner's Blog: Seagull 0.6.4 Release (fixes Security Isse from 0.6.3)

Derick Rethans' Blog: What is PHP doing?


Community Events

Don't see your event here?
Let us know!


framework series introduction example community php7 podcast interview composer release api language laravel opinion configure symfony2 conference application part2 performance

All content copyright, 2015 PHPDeveloper.org :: info@phpdeveloper.org - Powered by the Solar PHP Framework