HTTP_SERVER_URL

CAS Tags
The HTTP_SERVER_URL string tag is used to specify the URL of a NET SatisFAXtion HTTP proxy in LOGON function taglists from CAS ActiveX clients.  When the HTTP_SERVER_URL tag is used, a CAS client connects to the fax server through the HTTP proxy.  NET SatisFAXtion supports the ability to operate across the Internet using a web servers HTTP transport support. 

NET SatisFAXtion ships with a module named CASCGI.EXE, which can be installed into any Win32 compliant web environment.  The purpose of this module is to translate CAS function requests and responses compatible with the Internet into CAS taglists that are exchanged with NET SatisFAXtion over local LAN protocols or direct-memory.


XML Interface:
This tag is not used in the CAS XML Interface.  For more information, see CAS XML Communications in the CAS XML Interface.

  Type Max Size Multiple Allowed
String 256 No

Example:
function LogOnAndOpenSession()
  {
  var CAS_instance;

    // Logon to the connection router
  
  if (CAS_instance = CAS.Open(6,"",1000000)) 
    {
    var Tl, UniqueName, StatusNum;
      
    Tl = CAS.New();
    CAS.AddTag(Tl,"LOGON","");
    UniqueName = "XYZ-"+ parseInt(Math.random()*1000000+1000000);
    CAS.AddTag(Tl,"LOGON_NAME",UniqueName);
    CAS.AddTag(Tl,"DOMAIN_NAME","\\\\CASDEV\\NETSATISFAXTION");

      // Use HTTP to connect to the proxy server

    CAS.AddTag(Tl,
               "HTTP_SERVER_URL",
               "http://casdev.faxback.com/cgi-bin/cascgi.exe");

      // When PROTOCOL is used with HTTP_SERVER_URL, it represents
      // the protocol that the proxy server will use on the LAN to
      // communicate with the fax server

    CAS.AddTag(Tl,"PROTOCOL",2); // IP

    Tl = CAS.Send(CAS_instance,Tl);
    StatusNum = parseInt(CAS.GetTag(Tl,"STATUS_NUM",0));
    CAS.Delete(Tl);
    
    if (StatusNum == 0)
      {
        // Open a session with the server.  We can open 
        // sessions multiple times now that we're logged 
        // on to the connection router, but only one session 
        // can be open at a time.
        
      Tl = CAS.New();
      CAS.AddTag(Tl,"OPEN_SESSION","");
      CAS.AddTag(Tl,"REMOTE_LOGON_NAME","NETSATISFAXTION");
  
      Tl = CAS.Send(CAS_instance,Tl);
      StatusNum = parseInt(CAS.GetTag(Tl,"STATUS_NUM",0));
      CAS.Delete(Tl);
      
      if (StatusNum == 0)
        {
          // We could now send function requests to the server 
          // on the open session, but we'll just close it now 
          // for this example.
          
        Tl = CAS.New();
        CAS.AddTag(Tl,"CLOSE_SESSION","");
        Tl = CAS.Send(CAS_instance,Tl);
        CAS.Delete(Tl);
        }
      
      Tl = CAS.New();
      CAS.AddTag(Tl,"LOGOFF","");
      Tl = CAS.Send(CAS_instance,Tl);
      CAS.Delete(Tl);
      }
      
    CAS.Close(CAS_instance);
    }
  }

See Also:
LOGON, OPEN_SESSION, CLOSE_SESSION, LOGOFF