API and CGI!

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Guest

    API and CGI!

    CGI stands for Common Gateway Interface and it helps in developing a filter between the user and the server so that the user is not able to access the files to which the user is restricted.CGI are used to have a common gateway from which it should transfer the data from user to server and from server to user.

    API are used for making the Interface between the user and the server so that the medium will be common for both the user and the server.This interface is necessary so that two different languages can work in the same medium.This helps in maintaining the connectivity with the two applications.
  • Guest

    #2
    Bluestem currently supports a simple API for Perl 5 CGI scripts requiring client identification. Here is an example of the basic API:

    use lib('BluestemLib');
    use Bluestem;

    ($ID, $IdleTime, $SessionTime) = &bluestem_id;
    ...
    &bluestem_login($ReturnURL) unless $ID;
    &bluestem_login($ReturnURL, "Idle more than $IdleMax seconds.")
    if $IdleTime > $IdleMax;

    Comment

    Working...
    😀
    😂
    🥰
    😘
    🤢
    😎
    😞
    😡
    👍
    👎