Example: lr_get_transaction_status

The following example preempts calls that will probably fail by checking the transaction status along the way.

int status;

lr_start_transaction ("Flight");
web_url("home;sz=234x60;tile=1;ord=977672495775323400",
               "URL=http://ad.doubleclick.net/...ord=977672495775323400",
               ..
               "Mode=URL", LAST );

if (lr_get_transaction_status() == LR_FAIL) {

     /* web_url has failed the transaction. No point in continuing,
      * because future calls will probably fail too */
     lr_end_transaction("Flight", LR_FAIL);
     return;
}

/* Carry on ... */
status = web_submit_data("flight",
          "Action=http://www.mercury-tours.com/cgi-bin/tours?ITN_RESPONSE+",
          "Method=POST", "TargetFrame=",
          ...        
          LAST );