cURL / Mailing Lists / curl-and-php / Single Mail

curl-and-php

Re: Page name

From: Daniel Stenberg <daniel_at_haxx.se>
Date: Mon, 6 Mar 2006 10:24:48 +0100 (CET)

On Mon, 6 Mar 2006, vivekanandan wrote:

> Is It possible to get the page full path when we use cURL to get a Page.
>
> Example: If I am going to fetch www.yoursite.com...
> <http://www.yoursite.com...> The Index page may
> www.yoursite.com/index.html <http://www.yoursite.com/index.html> (or)
> www.yoursite.com/index.php <http://www.yoursite.com/index.php> (or(
> www.yoursite.com/index.asp <http://www.yoursite.com/index.asp> (or)
> www.yoursite.com/src/index.html <http://www.yoursite.com/src/index.html>
>
> I want to get the full path .. Is it possible when using cURL ?

No. It simply isn't possible whatever tool you use. HTTP is not giving that
info and the server doesn't even have to have or use a particular file name
for that URL.

-- 
  Commercial curl and libcurl Technical Support: http://haxx.se/curl.html
_______________________________________________
http://cool.haxx.se/cgi-bin/mailman/listinfo/curl-and-php
Received on 2006-03-06