cURL / Mailing Lists / curl-library / Single Mail

curl-library

Re: Resolve file location

From: Joe Nardone <jnardone_at_gmail.com>
Date: Wed, 23 Jul 2008 14:01:56 -0400

> I am curious how a particular site works. Its main page is
> http://site.com/page.php
> when i visit a page its
> http://site.com/page.php?id=123456
>
> Then, when i download a file or image its
> http://site.com/dl.php?id=123456&start=1

Odds are they're rewriting the URLs, either at the webserver level
(see Apache's mod_rewrite) or via a more complex scheme inside the
server-side PHP.

Why does it matter? Can't you just request the file via it's "pretty"
name and let the webserver/remote app take care of doing that work?

joe
Received on 2008-07-23