#! /usr/bin/env php $xml, 'seq_file' => "@$file"); } else { $fields = "request=$xml"; } if (!curl_setopt($ch, CURLOPT_POSTFIELDS, $fields)) { die("curl_setopt failed\n"); } $reply = curl_exec($ch); if (!$reply) return array(null, "HTTP error"); echo $reply; exit; $r = simplexml_load_string($reply); if (!$r) return array(null, "Can't parse reply XML:
".htmlentities($reply).""); return array($r, null); } function handle_submit() { global $argc, $argv; if ($argc != 4) usage(); if (!is_file($argv[2])) die("seq file missing"); $auth = $argv[3]; $req_xml = "