Re: CURL running form PHP exec() problem!

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



I've encountered the same problem with exec(curl, system(curl, etc.  PHP
exits with sh: \curl: No file or directory.  I'm wondering if there is
some php shell option that has to be set.

My other problem:

Upfront, I can post and recieve data just fine with asp.net, perl, and
java client scripts.  so I'm kind up against a wall with following curl
issue.  Thanks in advance.

client side cert post with curl.  From command line, I'm able to
connect, ssl authenticate and post.  But server complains with HTTP 405
method not allowed.  Snippet of curl trace below (more below after
snippet):

0000: 48 54 54 50 2f 31 2e 31 20 31 30 30 20 43 6f 6e HTTP/1.1 100 Con
0010: 74 69 6e 75 65 0d 0a                            tinue..
<= Recv header, 27 bytes (0x1b)
0000: 53 65 72 76 65 72 3a 20 4d 69 63 72 6f 73 6f 66 Server: Microsof
0010: 74 2d 49 49 53 2f 35 2e 30 0d 0a                t-IIS/5.0..
<= Recv header, 37 bytes (0x25)
0000: 44 61 74 65 3a 20 54 68 75 2c 20 30 37 20 41 70 Date: Thu, 07 Ap
0010: 72 20 32 30 30 35 20 31 38 3a 32 32 3a 33 31 20 r 2005 18:22:31 
0020: 47 4d 54 0d 0a                                  GMT..
<= Recv header, 33 bytes (0x21)
0000: 48 54 54 50 2f 31 2e 31 20 34 30 35 20 4d 65 74 HTTP/1.1 405 Met
0010: 68 6f 64 20 6e 6f 74 20 61 6c 6c 6f 77 65 64 0d hod not allowed.
0020: 0a                                              .
<= Recv header, 27 bytes (0x1b)
0000: 53 65 72 76 65 72 3a 20 4d 69 63 72 6f 73 6f 66 Server: Microsof
0010: 74 2d 49 49 53 2f 35 2e 30 0d 0a                t-IIS/5.0..
<= Recv header, 37 bytes (0x25)
0000: 44 61 74 65 3a 20 54 68 75 2c 20 30 37 20 41 70 Date: Thu, 07 Ap
0010: 72 20 32 30 30 35 20 31 38 3a 32 32 3a 33 31 20 r 2005 18:22:31 
0020: 47 4d 54 0d 0a                                  GMT..
<= Recv header, 19 bytes (0x13)
0000: 43 6f 6e 6e 65 63 74 69 6f 6e 3a 20 63 6c 6f 73 Connection: clos
0010: 65 0d 0a                                        e..

Then, a CheckDown service with meta name ROBOTS comes back with HTTP 405
resource not allowed.  That then is followed by a 404 error which from
little I've read involves mapping issues on the server itself.  Any help
would be appreciated.  I have the full curl trace if you want it.
Thanks.

cole ragland
mailto:cragland@xxxxxxxxxxx



"MMS <firstam.com>" made the following
 annotations on 04/07/2005 12:06:33 PM
------------------------------------------------------------------------------
"THIS E-MAIL MESSAGE AND ANY FILES TRANSMITTED HEREWITH, ARE INTENDED SOLELY FOR THE USE OF THE INDIVIDUAL(S) ADDRESSED AND MAY CONTAIN CONFIDENTIAL, PROPRIETARY OR PRIVILEGED INFORMATION.  IF YOU ARE NOT THE ADDRESSEE INDICATED IN THIS MESSAGE (OR RESPONSIBLE FOR DELIVERY OF THIS MESSAGE TO SUCH PERSON) YOU MAY NOT REVIEW, USE, DISCLOSE OR DISTRIBUTE THIS MESSAGE OR ANY FILES TRANSMITTED HEREWITH.  IF YOU RECEIVE THIS MESSAGE IN ERROR, PLEASE CONTACT THE SENDER BY REPLY E-MAIL AND DELETE THIS MESSAGE AND ALL COPIES OF IT FROM YOUR SYSTEM."
==============================================================================

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux