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

curl-and-php

Re: Curl return code Q (doesn't seem to be in man?)

From: Daniel Stenberg <daniel_at_haxx.se>
Date: Mon, 29 Jul 2002 11:28:13 +0200 (MET DST)

On Sat, 13 Jul 2002, Galen Surlak-Ramsey wrote:

> Ok here's my exec statement:
>
> $str = "curl -m 600 -d '$this->request' $this->url";
>
> exec("$str", $authorize, $ret);
>
> Now, if I run it from just a http:// I get a response (not the one I want,
> but I get one) and $authorize[0] is the server's response and $ret is 0.
>
> If I run the same 2 lines from my https:// location, my $authorize array is
> empty, and $ret is 127
>
> What is 127? I know its the return code for exec but I really don't know
> what that means.

Curl should never return 127. It indicates a problem. Please upgrade to a
newer curl version and then please let us know how to repeat this on a public
URL, if possible!

-- 
  Daniel Stenberg -- curl groks URLs
-------------------------------------------------------
This sf.net email is sponsored by: Dice - The leading online job board
for high-tech professionals. Search and apply for tech jobs today!
http://seeker.dice.com/seeker.epl?rel_code=31
Received on 2002-07-29