Menu

#1 SSL support?

closed
None
5
2002-10-09
2000-05-03
No

Discussion

  • Nobody/Anonymous

    Logged In: YES
    user_id=23139
    Browser: Mozilla/4.6 [en] (X11; I; Linux 2.0.36 i686)

    Hello

    There seems to be no mention of SSL support, thus there
    is none?

    How big a task would it be to impliment SSL for
    'post'ing data to an SSL site?

    Thanks

    Terry

     
  • Nobody/Anonymous

    Logged In: NO
    Browser: Mozilla/4.7 [en] (Win98; U)

    From: <a href="http://www.faqts.com/knowledge-base/view.phtml/aid/697/fid/105">FAQTS</a>

    PHP3 cannot not talk SSL nativley, therefore to make an SSL post you
    need to enlist the help of a little app called cURL.

    cURL is a command line driven app that accepts data and simulates
    posting a form to an SSL website. The data returned depends on the
    server we are posting to, although usually it is returned as a comma
    serperated line. cURL is called via the exec() command in PHP.

    Here is an example of a line that calls cURL.

    exec("/usr/local/bin/curl -m 120 -d \"$data\" https://$URL
    -L",$return_message_array, $return_number);

    ** NOTE ** The above line must NOT contain any line breaks, make sure
    its all on one line.

    -m is the timeout in seconds
    -d is the data you wish to post ($data="var=value&var1=value1")
    $URL is the https page you are posting to,

    The way i walk though the results is:

    for ($i = 0; $i < count($return_message_array); $i++ ) {
    $results = $results.$return_message_array[$i];
    }

    $results then contains all the data that was returned from the server.

     
  • Monte Ohrt

    Monte Ohrt - 2002-10-09

    Logged In: YES
    user_id=10328

    Snoopy has SSL support via cURL

     
  • Monte Ohrt

    Monte Ohrt - 2002-10-09
    • assigned_to: nobody --> mohrt
    • status: open --> closed
     

Log in to post a comment.