You are here: Re: Use curl to find redirect url of http://www.disney.com « PHP Programming Language « IT news, forums, messages
Re: Use curl to find redirect url of http://www.disney.com

Posted by Andy Hassall on 06/02/05 00:48

On 1 Jun 2005 14:31:25 -0700, "whimsica" <whimsica@aol.com> wrote:

>
>Hi. I'm trying to use cURL to output the redirect of the site
>http://www.disney.com
>which redirects to
>http://disney.go.com/home/today/index.html
>But it does not work... What am I doing wrong?
>I want to know what the redirect url is and then output it on a page.

If you dump out the contents of the original URL, you can see it uses
Javascript to do the redirection.

Visit the page with Javascript disabled and you get locked out of the site.
cURL won't be running Javascript either.

--
Andy Hassall / <andy@andyh.co.uk> / <http://www.andyh.co.uk>
<http://www.andyhsoftware.co.uk/space> Space: disk usage analysis tool

 

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

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