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

curl-and-php

Re: Fetch google

From: vivekanandan <vivekanandan_at_comodo.com>
Date: Wed, 15 Mar 2006 11:57:36 +0530

Is cURL working with redirect sites... that is when we type
www.google.com it re-direct to google.co.in like that... how can i
fetch Index page... In some case the index page may be in some other
folder like www.example.com/source/code/index.html. Is it possible to
fetch this page with give the whole path...

Kevin Carothers wrote:

> Well, I just type:
> curl "http://www.google.com"
>
> And I get:
> <html><head><meta http-equiv="content-type" content="text/html;
> charset=ISO-8859
> -1"><title>Google</title><style><!--
> body,td,a,p,.h{font-family:arial,sans-serif;}
> .h{font-size: 20px;}
> .q{color:#0000cc;}
> //-->
> </style>
> <script>
> <!--
> [---]
> <a href=/intl/en/about.html>About Google</a></font><p><font size=-2>&c
> opy;2006 Google</font></p></center></body></html>
>
> So, the standard questions apply: Firewall authentication? Proxies?
> Correct code?
>
> KC
>
> On 3/13/06, *vivekanandan* <vivekanandan_at_comodo.com
> <mailto:vivekanandan_at_comodo.com>> wrote:
>
> I am trying to fetch google.com <http://google.com> thru cURL but
> it not returns any result... what is the mistake ?
>
> --
> Vivek
>
> _______________________________________________
> http://cool.haxx.se/cgi-bin/mailman/listinfo/curl-and-php
> <http://cool.haxx.se/cgi-bin/mailman/listinfo/curl-and-php>
>
>
>
>------------------------------------------------------------------------
>
>_______________________________________________
>http://cool.haxx.se/cgi-bin/mailman/listinfo/curl-and-php
>
>

_______________________________________________
http://cool.haxx.se/cgi-bin/mailman/listinfo/curl-and-php
Received on 2006-03-15