Sagewire Logo

[PHP] CURL + Frames, fopen + remote sessions

4 Message(s) by 4 Author(s) originally posted in php general


From: jennifer Date:   Wednesday, October 24, 2007
Hi,

When using CURL to access a page with frames I get the "Your browser does
not appear to support frames" error. How can get around this? Is there
special header info that can be added? Also, if I were using fopen can
anyone offer sample code how to login to remote site and deal with remote
session info? Thanks!

Jennifer
--
View this message in context: http://www.nabble.com/CURL-%2B-Frames%2C-fopen-%2B-remote-sessions-tf4683978.html#a13384539
Sent from the PHP - General mailing list archive at Nabble.com.


From: jochem Date:   Friday, October 26, 2007
wrote in message:
Hi,
When using CURL to access a page with frames I get the "Your browser does
not appear to support frames" error. How can get around this? Is there
special header info that can be added?



try spoofing the USer Agent string - i.e. tell the server your 'Firefox' rather than
Curl.

Also, if I were using fopen can
anyone offer sample code how to login to remote site and deal with remote
session info? Thanks!



oh no. this is exactly the kind of thing Curl is made for. the archives of this
list contain plenty about using Curl with sites that require persistent cookie s and
authentication.

Jennifer





From: eric.butera Date:   Friday, October 26, 2007
wrote in message:
Hi,
When using CURL to access a page with frames I get the "Your browser does
not appear to support frames" error. How can get around this? Is there
special header info that can be added? Also, if I were using fopen can
anyone offer sample code how to login to remote site and deal with remote
session info? Thanks!
Jennifer
--
View this message in context: http://www.nabble.com/CURL-%2B-Frames%2C-fopen-%2B-remote-sessions-tf4683978.html#a13384539
Sent from the PHP - General mailing list archive at Nabble.com.
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


Hint: cookie jar


From: robert Date:   Friday, October 26, 2007
wrote in message:
wrote in message:
> Hi,
>
> When using CURL to access a page with frames I get the "Your browser does
> not appear to support frames" error. How can get around this? Is there
> special header info that can be added?
try spoofing the USer Agent string - i.e. tell the server your 'Firefox' rather than
Curl.
> Also, if I were using fopen can
> anyone offer sample code how to login to remote site and deal with remote
> session info? Thanks!
oh no. this is exactly the kind of thing Curl is made for. the archives of this
list contain plenty about using Curl with sites that require persistent cookies and
authentication.



Curl sucks at groking JAVAScript cookies :/ I know, I have had to parse
them out the hard way *cry*.

Cheers,
Rob.
--
...........................................................
SwarmBuy.com - http://www.swarmbuy.com

Leveraging the buying power of the masses!
...........................................................



Next Message: Close a session knowing it's ID (not the current session)



Programming | Sports | Autos

copyright 2006
Valid XHTML 1.0 Transitional