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,653092a494425539 X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2004-04-16 11:17:18 PST Path: archiver1.google.com!news1.google.com!news.glorb.com!news.moat.net!border1.nntp.sjc.giganews.com!border2.nntp.sjc.giganews.com!nntp.giganews.com!news1.optus.net.au!optus!news.mel.connect.com.au!news.xtra.co.nz!53ab2750!not-for-mail From: Craig Carey Newsgroups: comp.lang.ada Subject: Re: Sockets Example Message-ID: References: X-Newsreader: Forte Agent 1.93/32.576 English (American) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Date: Sat, 17 Apr 2004 06:17:27 +1200 NNTP-Posting-Host: 219.88.31.141 X-Complaints-To: newsadmin@xtra.co.nz X-Trace: news.xtra.co.nz 1082139437 219.88.31.141 (Sat, 17 Apr 2004 06:17:17 NZST) NNTP-Posting-Date: Sat, 17 Apr 2004 06:17:17 NZST Organization: Xtra Xref: archiver1.google.com comp.lang.ada:7219 Date: 2004-04-17T06:17:27+12:00 List-Id: On Mon, 12 Apr 2004 18:25:11 GMT, tmoran@acm.org wrote: >>> Could anybody explain to me how you'd go about querying a http server >>> and getting a response? Even retrieve a specific file? >> I have some simple Ada 95 code to parse HTTP/1.0 headers, here: http://www.ijs.co.nz/code/ada95_ptunnel_proxy_1.95b_win2k_unix.zip It was not nicely packaged up. [Missing parts of the entire proxy easily could be available]. In there is a small bind-socket subroutine that binds twice: firstly exclusively, and when that fails, then in a sharing mode [i.e. then ineffectively up until when the other program lets go of that local socket]. >>[AWS:] http://libre.act-europe.fr/aws/main.html >[Simplsrvr:] www.rrsoftware.com -- Craig Carey http://www.ijs.co.nz/ada_95.htm