From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on polar.synack.me X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00 autolearn=ham autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,82a333bf69c3be44,start X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2003-02-12 22:57:08 PST Path: archiver1.google.com!news1.google.com!newsfeed.stanford.edu!logbridge.uoregon.edu!arclight.uoregon.edu!wn13feed!wn12feed!wn14feed!worldnet.att.net!204.127.198.203!attbi_feed3!attbi.com!rwcrnsc53.POSTED!not-for-mail From: tmoran@acm.org Newsgroups: comp.lang.ada Subject: ANN: http & smtp etc packages to adapower X-Newsreader: Tom's custom newsreader Message-ID: <8lH2a.93830$be.72060@rwcrnsc53> NNTP-Posting-Host: 12.234.13.56 X-Complaints-To: abuse@attbi.com X-Trace: rwcrnsc53 1045119428 12.234.13.56 (Thu, 13 Feb 2003 06:57:08 GMT) NNTP-Posting-Date: Thu, 13 Feb 2003 06:57:08 GMT Organization: AT&T Broadband Date: Thu, 13 Feb 2003 06:57:08 GMT Xref: archiver1.google.com comp.lang.ada:34043 Date: 2003-02-13T06:57:08+00:00 List-Id: David Botton will soon be posting on www.adapower.com some packages I sent in the hopes they would help someone build the killer Ada app ;) http offers Open/Get/Head/Post routines to access web pages. It includes line (ie, crlf) oriented read with Content-length or transfer-encoding: chunked sizes. It will save/send cookies (default) or ignore them. multitasking safe, of course. smtp handles smtp (e-mail send) protocol sorts generic List/Merge sort (Knuth Vol 3, alg. 5.2.4L) WORM_Str Write Once, Read Many String store, also includes binary search generic subpackage. Notify A 31 line demo of the above, that reads a web page and emails the first line containing the word "title", if there is such a line. The style of usage, from the Notify demo, is: Http.Open(Web, "www.somewhere.com"); Http.Get(Web, "/", Response, Send_Cookies => False); loop Http.Get_Line(Web, Line, Last); exit when Last = 0; if Ada.Strings.Fixed.Index(Line(1 .. Last), "title") /= 0 then Smtp.Open(Email, Host => "mail.myISP.com"); Smtp.Send_Message_Info(Email, Sender => "me@myISP.com", To => "you@yourISP.com", Subject => "Notify"); Smtp.Put_Content_Line(Email, Line(1 .. Last)); Smtp.Finish_Message(Email); Smtp.Close(Email); exit; end if; end loop; Http.Close(Web); The posted packages are unrestricted in use and themselves use the GMGPL version of Windows Claw, available via www.adapower.com