cURL Mailing List Monthly Index Single Mail
curl-and-php mailing list Archives
Re: Ignoring dns lookups in php / lib curl.
many thanks for that.
Daniel Stenberg wrote:
> On Fri, 17 Dec 2004, Kevin Revill wrote:
>> I already found that snippet of code on the curl site, but i can not
>> find the php curl variant. Anyone can enlighten me of it?
> Ok, allow me to write this off the top of my head and please bear with
> my lack of PHP skills:
> $header = "Host: my.wonderful.host";
> $url = "http://10.0.0.1/";
> $ch = curl_init($url);
> curl_setopt($ch, CURLOPT_HTTPHEADER, $header);
> curl_setopt($ch, CURLOPT_URL, $url);
> // possibly some more options
> $result = curl_exec($ch);
Received on 2004-12-17
These mail archives are generated by hypermail.
Page updated November 12, 2010.
File upload with ASP.NET
web site info