Monrox
Power Member
- Apr 9, 2010
- 617
- 537
....
X-Powered-By: PHP/3.2.18
Set-Cookie: PHPSESSID=fre54h546hgfngr5v2pg5d5dgh9gf; path=/
Expires: Mon, 15 Jun 1999 09:00:00 GMT
Cache-Control: private
....
How to snatch the cookie content from the server response? Should I use a text array and read it line by line, some IndexOf / LastIndexOf combination or RegEx? Also if I go line by line, is it better to send a dedicated HEAD request instead of having to split hundreds of lines of the source html.
I am really new to this server client communication and don't want to use lame logic due to ignorance