(* Given an AFN record name, generate html that redirects us to the family search page for that record. First we retrieve a web page that contains the recid, then we use that to create the redirect url. *) (* curl -s 'http://www.familysearch.org/Eng/Search/customsearchresults.asp?date_range_index=0&type=0&LDS=0&event_index=0&date_range=0&file_number=1TF0-QKD&standardize=N&submit=Search&clear=Clear' -> af/individual_record.asp?recid=44901677&lds=0&region=%2D1&regionfriendly=&juris1=&juris2=&juris3=&juris4=®ionfriendly=&juris1friendly=&juris2friendly=&juris3friendly=&juris4friendly= *) let cgivars = ["file_number", ""] (* Make a function that returns the value of any cgi variable, either as passed in the url or the default. *) let cgi = Cgi.cgiinit (); (*Printf.eprintf "List of CGI arguments: