| |
|
|
|
cURL Mailing List Monthly Index Single Mail
curl-and-php mailing list Archives
Re: Curl instance against web browser
From: jom dalina <user101110_at_yahoo.com>
Date: Mon, 2 Mar 2009 03:28:33 -0800 (PST)
that makes sense!
thanks for your reply sir.
However it happens that I am scraping a site that requires login, my problem is that in web browser, the site does not accept reload of browser, direct access of page thru url, using "BACK" button from browser and opening a page in new tab also get me an error session.
Now here is the scenario, I can login using curl and accessed the page after i successfully logged in, but i can't navigate the succeeding page. it get me an error that either my session(website), or i accessed the page directly.
Since the site only works for the browser where you open it, and using a new browser window or either a tab will result in an error, I just thought that every curl activity is independent instance to each other.
Or I might be missing some needed parameter of curl in php's set_opt. but i already tried the code for other site that uses session cookie and it works fine.
--- On Mon, 3/2/09, Daniel Stenberg <daniel_at_haxx.se> wrote:
On Sun, 1 Mar 2009, jom dalina wrote:
> does opening a curl session equivalent to opening a browser instance (e.g.
Yes and no.
HTTP is stateless so there's no difference to a web site if you do one
But a TCP connection to a server can be re-used for multiple requests which
Then there's also stuff like cookies, but that has nothing to do with the
-- / daniel.haxx.se _______________________________________________ http://cool.haxx.se/cgi-bin/mailman/listinfo/curl-and-php
_______________________________________________
These mail archives are generated by hypermail. |
Page updated November 12, 2010.
web site info