Welcome to the GoFuckYourself.com - Adult Webmaster Forum forums.

You are currently viewing our boards as a guest which gives you limited access to view most discussions and access our other features. By joining our free community you will have access to post topics, communicate privately with other members (PM), respond to polls, upload content and access many other special features. Registration is fast, simple and absolutely free so please, join our community today!

If you have any problems with the registration process or your account login, please contact us.

Post New Thread Reply

Register GFY Rules Calendar
Go Back   GoFuckYourself.com - Adult Webmaster Forum > >
Discuss what's fucking going on, and which programs are best and worst. One-time "program" announcements from "established" webmasters are allowed.

 
Thread Tools
Old 07-25-2009, 11:44 AM   #1
PPC
Registered User
 
Join Date: Jun 2007
Posts: 60
Php + curl + cookies

Anyone have a working example of logging into a protected area and navigating to another page using php, curl & cookies, oh my


I can get logged in, but that's about it.
__________________
Pay Per Click
PPC is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 07-25-2009, 03:22 PM   #2
PPC
Registered User
 
Join Date: Jun 2007
Posts: 60
bump4help
__________________
Pay Per Click
PPC is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 07-25-2009, 05:31 PM   #3
PPC
Registered User
 
Join Date: Jun 2007
Posts: 60
guess i'll try a different forum :|
__________________
Pay Per Click
PPC is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 07-25-2009, 06:39 PM   #4
wizzart
scriptmaster
 
wizzart's Avatar
 
Industry Role:
Join Date: May 2006
Location: Serbia
Posts: 5,237
It's possible only if you have login info for that portected area.

curl is perfect for that.
wizzart is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 07-25-2009, 08:35 PM   #5
PPC
Registered User
 
Join Date: Jun 2007
Posts: 60
yeah , I have login info

I can login just having problems navigating to a page and submitting a form (I can submit forms while not logged in.. but I need to login and submit this one and cant)

just need to submit a form to add record to db while logged in and having problems

any help would be appreciated
__________________
Pay Per Click
PPC is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 07-25-2009, 08:58 PM   #6
woj
<&(©¿©)&>
 
woj's Avatar
 
Industry Role:
Join Date: Jul 2002
Location: Chicago
Posts: 47,882
curl_setopt + CURLOPT_COOKIE FTW
__________________
Custom Software Development, email: woj#at#wojfun#.#com to discuss details or skype: wojl2000 or gchat: wojfun or telegram: wojl2000
Affiliate program tools: Hosted Galleries Manager Banner Manager Video Manager
Wordpress Affiliate Plugin Pic/Movie of the Day Fansign Generator Zip Manager
woj is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 07-25-2009, 09:18 PM   #7
jwerd
Confirmed User
 
Industry Role:
Join Date: Jun 2003
Location: Costa Rica
Posts: 1,953
Quote:
Originally Posted by woj View Post
curl_setopt + CURLOPT_COOKIE FTW
what he said
__________________
Yii Framework Guru - Seasoned PHP vet - Partner @ XXXCoupon.com
jwerd is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 07-25-2009, 09:28 PM   #8
PPC
Registered User
 
Join Date: Jun 2007
Posts: 60
here's what I have that logs in and visits another page that shows I'm logged in. I just cant submit a form after this. I need to visit the submit form to grab values from it

I've tried every thing that doesn't work
PHP Code:
curl_setopt($chCURLOPT_URL'http://my.com/login.php?');
curl_setopt ($chCURLOPT_POST1);
curl_setopt ($chCURLOPT_POSTFIELDS'username=PPC&password=madcharacters');
curl_setopt ($chCURLOPT_COOKIEJAR'cookie.txt');
curl_setopt ($chCURLOPT_RETURNTRANSFER1);
$store curl_exec ($ch);
stufffff
curl_setopt
($chCURLOPT_URL'http://my.com/add.php');
$
2ndpagecontent curl_exec ($ch);
echo $
2ndpagecontent
__________________
Pay Per Click

Last edited by PPC; 07-25-2009 at 09:29 PM..
PPC is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 07-25-2009, 10:00 PM   #9
PPC
Registered User
 
Join Date: Jun 2007
Posts: 60
i got it its a beautiful thing

thank u 51bot

all bout tha keywords
__________________
Pay Per Click
PPC is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Post New Thread Reply
Go Back   GoFuckYourself.com - Adult Webmaster Forum > >

Bookmarks



Advertising inquiries - marketing at gfy dot com

Contact Admin - Advertise - GFY Rules - Top

©2000-, AI Media Network Inc



Powered by vBulletin
Copyright © 2000- Jelsoft Enterprises Limited.