You are here: Re: Any ideas how to read a url that's changed by the server? « PHP Programming Language « IT news, forums, messages
Re: Any ideas how to read a url that's changed by the server?

Posted by TechieGrl on 08/20/07 22:16

> //set the url
> curl_setopt($c, CURLOPT_URL, "http://www.example.com/");


Following the example as you have it worked great and gave me the
initial page information! But the problem is that I am not sure how
get to the page that I really need given how the url is created.

I need to hit this page - www.example.com/sessionId/page.html

My initial thought is to go to the main web site - www.example.com.
When I go to that site, I'm automatically redirected to a page that
has the session variable inserted into the url - www.example.com/sessionId/page.html

page.html is actually where the data is that I'm grabbing.

It seems as if I need to sent in 2 CURLOPT_URL values, but that's
where the session variable becomes a problem because it now thinks
that I have 2 separate sessions.

Maybe I'm approaching this all wrong.

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация