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

curl-and-php

Re: Call curl -v option from PHP program

From: Michael Wallner <mike_at_iworks.at>
Date: Fri, 27 Oct 2006 09:03:47 +0200

santi wang wrote:
> Hello All:
>
> Has anyone ever called curl -v option (e.g., curl -v https://
> securedwebsite.com) from PHP program? I'm having problem getting the
> output (certificate information). I try using both exec() and system()
> functions in PHP, it just doesn't give the output at all.
> However, when I tried it with other curl commands and it seemed to work
> okay such as curl -h, curl -3 https://..., or curl -I https://...)
> Does anyone know why?

Probably because messages go to stderr? Try `curl -v ... 2>&1`

Regards,

-- 
Michael
_______________________________________________
http://cool.haxx.se/cgi-bin/mailman/listinfo/curl-and-php
Received on 2006-10-27