Join us at IRC!
I'd prefer to die standing, than to live on my knees - Che Guevara
Wednesday, May 23, 2012
Navigation
Members Online
Total Online: 42
Web Spiders: 18
Guests Online: 39
Members Online: 3

Registered Members: 70173
Newest Member: TheGreek
Latest Articles
View Thread

HellBound Hackers | Computer General | Webmasters Lounge

Author

cURL headers/cookies

ranma
Member



Posts: 269
Location: Behind a sphere
Joined: 27.08.05
Rank:
HBH Guru
Posted on 27-06-08 22:38
I am working on a webpage to get info from the website of a game. No, not a bot. This is how it is:
There is an attack log that logs who gets attacked. However, it only logs 20 attacks. I want to make a webpage that logs all of them and stores them in a database. The parsing and putting in the database are all really easy. What I need help with is getting the page with cURL. I will need to send my cookies. How can I send cookies?


Wisdom spared is wisdom squared.
Author

RE: cURL headers/cookies

mastergamer
Member



Posts: 432
Location:
Joined: 07.02.06
Rank:
God
Posted on 27-06-08 23:15
Use CURLOPT_HTTPHEADER. Something like this:

curl_setopt( $ch, CURLOPT_HTTPHEADER, "Cookie: varName=value; anotherVar=value" );



mastergamer0168@gmail.com
Author

RE: cURL headers/cookies

korg
Admin from hell



Posts: 1704
Location: ENDING YOUR ONLINE EXPERIENCE!
Joined: 01.01.06
Rank:
The Master
Posted on 28-06-08 03:46
I would use:
curl_setopt ($ch, CURLOPT_COOKIE, "Cookie info here");




I deal in pain, All life I drain, I dominate, I seal your fate.




Edited by korg on 28-06-08 03:46
Author

RE: cURL headers/cookies

ranma
Member



Posts: 269
Location: Behind a sphere
Joined: 27.08.05
Rank:
HBH Guru
Posted on 28-06-08 17:26
Thanks. Now I need to get the response headers. How would I do that?
EDIT: Got that. How do I send my own headers?


Wisdom spared is wisdom squared.

Edited by ranma on 28-06-08 20:00
Guest
Username

Password

Remember Me


Bookmark This Page
Affiliates
Adverts

 

 

Links
By using, viewing or obtaining any information contained on this site, you agree to the disclaimer.

© HellBound Hackers 2008- 2009. Since 3rd December 2004.