🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: alt.privacy.anon-server
Article #239845

Re: URL Retrieval bug

#239845
From: Zax
Date: Fri, 16 Jul 2010 12:39
46 lines
2480 bytes
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On Fri, 16 Jul 2010 11:40:09 +0200 (CEST), Nomen Nescio wrote in
Message-Id: <066f1db75451b4ce5233fbc611bd0a49@dizum.com>:

>> One possible solution would be to make base64 encoding user
>> configurable.
>
> That would be good.
>
>> Another would be to analyse the content of the fetched url to see if
>> it's binary or markup/text and encode it accordingly.
>
> More complex analysis, subject to error.

There was a third option......

When the URL is retrieved, the server provides info about it.  For
example, when retrieving http://www.is-not-my.name:-
Date: Fri, 16 Jul 2010 12:35:55 GMT
Server: Apache/2.2.15 (Debian)
Last-Modified: Fri, 25 Jun 2010 19:23:39 GMT
ETag: "dab79-18b5-489dfb548c4c0"
Accept-Ranges: bytes
Content-Length: 6325
Connection: close
Content-Type: text/html

The Content-Type is exactly the info required to know how to handle the
MIME encoding for attachment to the a.a.m posting.

I've built this into the server now if you'd like to give it a try.

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.10 (GNU/Linux)

iEYEARECAAYFAkxAUxEACgkQlKZ6CY7Vd0M2YgCg/M8wcnXKv0isc/675K1rIlXJ
hPEAnRvp+cX0hgEANXFR2LwwxhvLgWra
=XZei
-----END PGP SIGNATURE-----

-- 
pub  1024D/8ED57743 2003-07-08 Bananasplit Operator
     Key fingerprint = 796F 67E0 E890 A0BB BDAE  EBB4 94A6 7A09 8ED5 7743
uid                            Admin <admin.bananasplit.info>
Technical Details
Message-ID: <slrni40koh.2jj.admin@fleegle.mixmin.net>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!i2pn2.pugleaf.net!archive.newsdeef.eu!mbox2nntp-alt.privacy.anon-server.20141023.mbox.gz!num1.nntp.dca.giganews.com!number.nntp.dca.giganews.com!border2.nntp.dca.giganews.com!nntp.giganews.com!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsfeed.straub-nv.de!open-news-network.org!news.mixmin.net!news.bananasplit.info!not-for-mail
References: <slrni3gn27.4mg.admin@fleegle.mixmin.net> <589b294ef98c02b28d7d4bfe455c7484@dizum.com> <066f1db75451b4ce5233fbc611bd0a49@dizum.com>

Show Full Headers
Complete Article Headers
Message-ID: <slrni40koh.2jj.admin@fleegle.mixmin.net>
Subject: Re: URL Retrieval bug
Date: Fri, 16 Jul 2010 12:39:45 +0000
From: Zax <admin@bananasplit.info>
References: <slrni3gn27.4mg.admin@fleegle.mixmin.net> <589b294ef98c02b28d7d4bfe455c7484@dizum.com> <066f1db75451b4ce5233fbc611bd0a49@dizum.com>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!i2pn2.pugleaf.net!archive.newsdeef.eu!mbox2nntp-alt.privacy.anon-server.20141023.mbox.gz!num1.nntp.dca.giganews.com!number.nntp.dca.giganews.com!border2.nntp.dca.giganews.com!nntp.giganews.com!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsfeed.straub-nv.de!open-news-network.org!news.mixmin.net!news.bananasplit.info!not-for-mail
Newsgroups: alt.privacy.anon-server
Organization: Mixmin
Lines: 46
X-Complaints-To: abuse@bananasplit.info
NNTP-Posting-Date: Fri, 16 Jul 2010 12:39:45 +0000 (UTC)
User-Agent: slrn/pre1.0.0-18 (Linux)