473,378 Members | 1,495 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,378 software developers and data experts.

Save webpage

Hi all expertise,

Could anyone tell me how to simulate a user (with correct browser
setting, etc) to access, walk through and save a facebook webpage
(e.g. a friend listing page) using php? I know curl may able to do
similar stuff, however, I am not sure what kind of setting should I
need. Also is there any sample code?

Notes: since facebook need to login before accessing the other page,
so a simulation of browsing will be needed as well.

Best regards,
Guy

Sep 9 '07 #1
1 2397
CURL will do great, I don't have the code right here but check:

CURLOPT_HTTPAUTH
CURLOPT_USERPWD
CURLOPT_URL
CURLOPT_TIMEOUT
CURLOPT_HEADER
CURLOPT_FOLLOWLOCATION
CURLOPT_RETURNTRANSFER
CURLOPT_SSL_VERIFYPEER
CURLOPT_SSL_VERIFYHOST
CURLOPT_COOKIEJAR
CURLOPT_COOKIEFILE
CURLOPT_POST
CURLOPT_POSTFIELDS
CURLOPT_REFERER
CURLOPT_USERAGENT

Just learn about it on the PHP Manual.

On Sep 9, 9:09 am, facebk...@gmail.com wrote:
Hi all expertise,

Could anyone tell me how to simulate a user (with correct browser
setting, etc) to access, walk through and save a facebook webpage
(e.g. a friend listing page) using php? I know curl may able to do
similar stuff, however, I am not sure what kind of setting should I
need. Also is there any sample code?

Notes: since facebook need to login before accessing the other page,
so a simulation of browsing will be needed as well.

Best regards,
Guy
Sep 9 '07 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: me | last post by:
I have a webpage containing a link to a spreadsheet <a href="somefilename.xls">click</a> When the link is clicked a spreadsheet opens in internet explorer using some sort of excel COM object. I...
2
by: FlashMerlot | last post by:
We have an ASPX (C#) webform which hosts dropdownlists, textboxes, grids, checkboxes, etc. The users want to: #1 - "FREEZE" the entire webpage contents (and state) #2 - move IE browser to...
0
by: prakash | last post by:
Dear Friends I am new guy to Visual C++.NET I've program to save website as a image vc++.net . It have a function "SaveSnapshot" to save the webpage as an image On that function ifor saving...
1
by: Kylin | last post by:
How to Save a Webpage as a local file in ASP.net, eg .http://www.asp.net/Default.aspx?tabindex=0&tabid=1 , how to save this page as a local file named by myself ? any document about this ? --...
2
by: programmer2004 | last post by:
Hi I have used WebBrowser control and i want to save the entire webpage including pictures etc. i have called ExecWB method of WebBrowser control with OLECMDEXECOPT_DONTPROMPTUSER flag, but it...
5
by: zephron2000 | last post by:
Hey, I need to either: 1. View the page source of a webpage after it loads or 2. Save the webpage to my computer after it loads (same as File Save Page As)
0
by: zulbaric | last post by:
Hi, ive just finished building more "tabbed web browser with favourites menu" but i cant ge the favourites menu to work properly. THe add functions are ok the problem is I cant ge t the favourites to...
2
rishidadhich
by: rishidadhich | last post by:
hello, I am new to PHP, I am stuccked in a problem that how to fetch text contents from a external website and then save them to a text file. say there is any webpage...
1
by: divyaroshin | last post by:
hi i am working with visual studio.net 2003 version. i want to save a webpage into the local system wihtout using save as dialog box.i am using vb.net. can any body help me? thanks divya
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.