----boundary-LibPST-iamunique-1076948537_-_-
Content-type: text/plain
Koen,
Thank you very much!
I will get right on this and attempt to make it more general.
Bernhard,
I'll have to experiment to see if blocking really is a problem.
-Doug Danforth
Koen Desaeger wrote:
> Hello,
> I think I found a solution to your question.
> Via the 'HTTP' entry on Wikipedia I found the following link:
> http://www.jmarshall.com/easy/http/
> With the info from this site and module CommStreams I created the
> attached module who's Do command writes the following to the Log:
>
> ----------------------------------------------------------------
> HTTP/1.1 200 OK
> Content-Length: 152678
> Content-Type: text/html
> Content-Location: http://www.zinnamturm.de/home.htm
> Last-Modified: Thu, 08 Feb 2007 16:17:43 GMT
> Accept-Ranges: bytes
> ETag: "80ed41a99c4bc71:9c13f"
> Server: Microsoft-IIS/6.0
> X-Powered-By: ASP.NET
> MicrosoftOfficeWebServer: 5.0_Pub
> Date: Fri, 16 Feb 2007 10:52:26 GMT
> -----------------------------------------------------------------
>
> Create connection:
> CommStreams.NewStream("CommTCP", "", "www.zinnamturm.de:80", stream, res);
> Send the request:
> "HEAD / HTTP/1.1" + nl + "Host: www.zinnamturm.de" + nl + nl;
>
> The implementation is very rough but could get you started (this is the first time ever I did some
> network programming).
>
> What remains to be done is to parse the servers response for the "Last-Modified" entry.
>
> Notes:
> - HTTP/1.0 doesn't work
> - connection must be created on port 80; the port must not be mentioned however in the request line
> - a new line is cr + lf, as in DOS
>
> Brgds,
> Koen.
>
--- BlackBox
--- send subject HELP or UNSUBSCRIBE to blackbox{([at]})nowhere.xy
----boundary-LibPST-iamunique-1076948537_-_-
Content-type: application/rtf
Content-transfer-encoding: base64
Content-Disposition: attachment; filename="rtf-body.rtf"
e1xydGYxXGFuc2lcYW5zaWNwZzEyNTJcZnJvbXRleHQgXGRlZmYwe1xmb250dGJsDQp7XGYwXGZz
d2lzcyBBcmlhbDt9DQp7XGYxXGZtb2Rlcm4gQ291cmllciBOZXc7fQ0Ke1xmMlxmbmlsXGZjaGFy
c2V0MiBTeW1ib2w7fQ0Ke1xmM1xmbW9kZXJ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