Results 1 to 10 of 10
-
17th May 2012, 12:38 PM #1OPMember
how to get variable info after login using php
hi guys,
we use file_get_contents in php script to get content from page, but how to get info after login....?
that is, it ask for password to access page, how to login using php itself and get the data.....??
Thankstorrfriend Reviewed by torrfriend on . how to get variable info after login using php hi guys, we use file_get_contents in php script to get content from page, but how to get info after login....? that is, it ask for password to access page, how to login using php itself and get the data.....?? Thanks Rating: 5Skipp the Adfly Adfocus LinksBucks by one click(No Ads, No pop up's)
For << Kimsufi >> Truly Unmetered - No more 5Tb or 10Tb Limit
Wordpress Theme not working after editing footer copyright
-
17th May 2012, 03:39 PM #2Respected MemberWebsite's:
DL4Everything.com Soft2050.inUse curl first to login to the website and then store the cookies in a file. Then get new content using the cookie files saved previously.
-
17th May 2012, 03:55 PM #3Retired NinJaWebsite's:
loledhard.comfile_get_contents is used to fetch the data as it is from a url or a file.
Use curl if u want to pass some data like login details.
You don't hate Justin bieber.You hate the fact you ain't Justin Bieber!
-
17th May 2012, 07:40 PM #4OPMember
Thanks soft and humo
created a small script using curl,now able to login, storing cookies in text, and
got static page after login
Note:
now only i understood how all bots collecting info and RSS.
if CURL is not available means, then NO BOTS.
EDIT1:
DDOSING site is also possible using curl, i think so
(i don't do any ddos, i am still a php learner - f**ck you vtc, no curl tut there.)
EDIT2:
1) any solution for site with captcha during login...??
Skipp the Adfly Adfocus LinksBucks by one click(No Ads, No pop up's)
For << Kimsufi >> Truly Unmetered - No more 5Tb or 10Tb Limit
Wordpress Theme not working after editing footer copyright
-
20th May 2012, 08:05 AM #5Member
@torrfriend: there are 2 solutions for captcha:
- ocr, which you can't really rely on. also there is no real good implementation for it in php
- decaptcher or similar captcha breaking apis. these are basically apis where on the other end real people are breaking the captchas for you. you have to pay for it on a per captcha basisStream videos from RS directly | Earn up to $3/1000 views | RapidPlayer.org
-
20th May 2012, 09:20 AM #6Member
Captcha is there exactly to prevent automated actions. Solving that won't be an easy job.
-
20th May 2012, 06:17 PM #7OPMember
thanks for reply guys
now i have 2 questions
1) will the username/pass is send each time to target site for retrieval of data.....?? or just use username/pass for first time, then store in cookie.txt and use for whole session or whole day........??
2) i am here to type captcha, so any way to display the captcha to me, so i can type in box and send it back
-
21st May 2012, 11:20 AM #8Member
1) You can use the cookie till its valid. Have to check what is its expire date. It works the same way like the cookies in your browser, except the session cookies stay there. In your place I would simply do the login every time you need the data.
2) It's possible, but it needs some coding to make it.
get the form page > save the captcha image > display for yourself > type in and send > PHP curl posts all the data, including captcha
-
31st May 2012, 06:02 AM #9OPMember
so is it possible to to get cookies (copy from browser) and paste in cookiefile....??
then we can escape from login in curl and get contents .....??Skipp the Adfly Adfocus LinksBucks by one click(No Ads, No pop up's)
For << Kimsufi >> Truly Unmetered - No more 5Tb or 10Tb Limit
Wordpress Theme not working after editing footer copyright
-
31st May 2012, 02:15 PM #10Member
I guess its possible if you use the correct format.
---------- Post added at 04:15 PM ---------- Previous post was at 03:58 PM ----------
BTW,
Try to learn Regex, for me that was another of this kind of "revelations"
also, it's cool to be able to understand things like
Code:((\b[0-9]+)?\.)?\b[0-9]+([eE][-+]?[0-9]+)?\b ^4[0-9]{12}(?:[0-9]{3})?$
Sponsored Links
Thread Information
Users Browsing this Thread
There are currently 1 users browsing this thread. (0 members and 1 guests)
Similar Threads
-
Where to add login info to Auto Transload in RL
By Harshadewa in forum Web Development AreaReplies: 10Last Post: 27th Aug 2010, 03:41 PM -
a programmer asked my cpalead login info, is this okay ؟
By lana2008 in forum General DiscussionReplies: 10Last Post: 8th Jul 2010, 05:13 AM -
variable locations
By Spooky in forum vBulletinReplies: 2Last Post: 7th Jun 2010, 06:16 AM -
Variable in phpBB
By SarMa in forum phpBBReplies: 11Last Post: 26th Mar 2010, 07:08 PM -
Need Help To add text variable in url
By diablo9975 in forum Technical Help Desk SupportReplies: 0Last Post: 27th Nov 2009, 07:05 AM
themaManager - edit and manage...
Version 4.04 released. Open older version (or...