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 Rik on 08/21/07 00:56

On Tue, 21 Aug 2007 00:16:05 +0200, TechieGrl <cschaller@gmail.com> wrote:

>
>> //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.

Requesting and discarding several pages before you enter the 'real' data
shouldn't be a problem like this.

> Maybe I'm approaching this all wrong.

If you have a cookie with a session-id, you probably don't need in the URL
(might be required though, I don't know which site).

--
Rik Wasmus

 

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

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