Results 1 to 3 of 3

Thread: "httpencode" failed (missing __OK__ line)

  1. #1
    Join Date
    Nov 2009
    Posts
    3

    Default "httpencode" failed (missing __OK__ line)

    Hi Russell,

    I am trialing fmencoder/fmdecoder. Platform is Windows/IIS. My hosting provider won't open up the permissions to CMD.EXE so I'm trying to get SOCKET_FILTERS working. I am stuck, though, and could use your help.

    Here's the error message...

    The following error occurred in FormMail :
    filter_failed
    **********
    Error=Filter "httpencode" failed (missing __OK__ line):

    The Clues
    Can send unencrypted mail via FormMail.php successfully. The filter_failed message results when I add this httpencode statement to the form...

    <input type="hidden" name="filter" value="httpencode" />

    The windows version of fmemcoder.exe and the public key file are in /cgi-bin. The browser address http://motorescue.ca/cgi-bin/fmencoder.exe successfully gives the message: "GET method not yet implemented".

    The encoder filter line looks like this, although I'm not using ssl.

    Code:
    $SOCKET_FILTERS = array(
                     "httpencode"=>array("site"=>"www.motorescue.ca",
                        "port"=>80,
                        "path"=>"/cgi-bin/fmencoder",
                        "params"=>array(array("name"=>"key",
                                "file"=>"$REAL_DOCUMENT_ROOT/cgi-bin/motorescue-pub.txt"))),
                     "sslencode"=>array("site"=>"ssl://www.motorescue.ca",
                        "port"=>443,
                        "path"=>"/cgi-bin/fmencoder",
                        "params"=>array(array("name"=>"key",
                                "file"=>"$REAL_DOCUMENT_ROOT/cgi-bin/motorescue-pub.txt"))),
                    );
    This is the scratchpad statement. Hosting tech support tells me the permissions to the folder are set correctly to allow global writing to it.

    $SCRATCH_PAD = "$REAL_DOCUMENT_ROOT/temp";

    which resolves to: C:\websites\Sites\motorescue.ca\temp

    Formmail.php resides in the site root...

    C:\websites\Sites\motorescue.ca\formmail.php

    Phpinfo is here...

    http://motorescue.ca/phpinfo.php

    Any help would be appreciated. I can provide FTP access to the site if you need it.

  2. #2
    Join Date
    Dec 2003
    Posts
    3,980

    Default Re: "httpencode" failed (missing __OK__ line)

    Hi,

    You've done a good job of analyzing and testing.

    This looks wrong:
    PHP Code:
    "path"=>"/cgi-bin/fmencoder" 
    It should be:
    PHP Code:
    "path"=>"/cgi-bin/fmencoder.exe" 
    That's probably all you need to make progress.
    Russell Robinson - Author of Tectite FormMail and FormMailDecoder
    http://www.tectite.com/

  3. #3
    Join Date
    Nov 2009
    Posts
    3

    Default Re: "httpencode" failed (missing __OK__ line)

    Yay! Yay! Yay! That was it. Now receiving encrypted messages. Thanks for your quick response.

    And thanks for Formmail, it's a great product, rarely do a web project without using it.

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. No "Sender" of the email
    By lemonade in forum FormMail Subscription Support
    Replies: 1
    Last Post: 28-Jun-2004, 08:11 PM
  2. "Internal Server Error": What'd I do wrong?
    By sgodun in forum FormMail Subscription Support
    Replies: 4
    Last Post: 16-May-2004, 12:01 AM
  3. Spiders and "The form has an internal error"
    By russellr in forum FormMail Subscription Support
    Replies: 0
    Last Post: 13-May-2004, 09:11 PM
  4. Email contains no "mesg"
    By xuric in forum FormMail Subscription Support
    Replies: 1
    Last Post: 19-Apr-2004, 08:17 PM
  5. William,Failed to send email.
    By shama07 in forum FormMail Subscription Support
    Replies: 1
    Last Post: 31-Jan-2004, 03:08 AM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •