Follow us on Twitter!
It is the path of least resistance that makes rivers and men crooked. - Bj Palmer
Friday, April 18, 2014
Navigation
Home
HellBoundHackers Main:
HellBoundHackers Find:
HellBoundHackers Information:
Learn
Communicate
Submit
Shop
Challenges
HellBoundHackers Exploit:
HellBoundHackers Programming:
HellBoundHackers Think:
HellBoundHackers Track:
HellBoundHackers Patch:
HellBoundHackers Other:
HellBoundHackers Need Help?
Other
Members Online
Total Online: 30
Guests Online: 29
Members Online: 1

Registered Members: 82826
Newest Member: Jakob
Latest Articles
View Thread

HellBound Hackers | Computer General | Webmasters Lounge

Author

cURL headers/cookies

ranma
Member



Posts: 273
Location: Behind a sphere
Joined: 27.08.05
Rank:
Active User
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


Member

Your avatar

Posts:
Location:
Joined: 01.01.70
Rank:
Guest
Posted on 27-06-08 23:15
Use CURLOPT_HTTPHEADER. Something like this:

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





Author

RE: cURL headers/cookies

korg
Admin from hell



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





i57.photobucket.com/albums/g215/korg1269/shodan13.jpg

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

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

RE: cURL headers/cookies

ranma
Member



Posts: 273
Location: Behind a sphere
Joined: 27.08.05
Rank:
Active User
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