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

curl-and-php

Re: Handling Meta-refresh with a unique,per-request URI

From: j.L <liuping.james_at_gmail.com>
Date: Mon, 19 May 2008 14:01:07 +0800

i get the html

my curl_opt:

       $curl = curl_init();
> $header = array("Content-Type: text/xml;charset=gb2312");
> curl_setopt ($curl, CURLOPT_USERAGENT, 'Mozilla/4.0 (compatible;
> MSIE 5.00; Windows 98)');
> curl_setopt($curl, CURLOPT_AUTOREFERER, true);
> curl_setopt($curl, CURLOPT_FOLLOWLOCATION, true);
> curl_setopt($curl, CURLOPT_URL, $url);
> curl_setopt($curl, CURLOPT_RETURNTRANSFER, true);
> curl_setopt($curl, CURLOPT_HEADER, 1);
> curl_setopt($curl, CURLOPT_MAXREDIRS, 3);
> curl_setopt($curl, CURLOPT_COOKIEJAR, "D:/test/cookie.txt");
> curl_setopt($curl, CURLOPT_COOKIEFILE, "D:/test/cookie.txt");
>

-- 
regards
j.L

_______________________________________________
http://cool.haxx.se/cgi-bin/mailman/listinfo/curl-and-php
Received on 2008-05-19