Ciao my friends ...

I've taken a look to the draft of HTTP/1.1 and, just a very little bit, to
libwww. But, so far, I haven't been able to understand so much about it !?!

Are you sure you wanna use libwww? If yes, I think we gonna build an
interface for that (but I think it's the less). But, overall, study it ...

Another solution could be this one.

Build a sort of HTTP class. Derive from that, both an HTTP/1.0 and and
HTTP/1.1 class, containing specific methods. They both require a connection
already open (maybe a pointer to a connection object, and if NULL a
connection must be open) to send a request to a server.

By the first call to a server, we can determine the protocol version used
by the server and set it in the Server class, anyway. Then, continue to
query the server til the queue of URLs gets empty. If the server does
support the HTTP/1.1, this could be done with a single connection, else
with a connection for call. The problem for HTTP/1.1  is to know what is
the real LAST request for that server, in order to send the header command
"Connection: close".

If you think it could be useful, I just try to do that next days.

The other question is for the HtDate class.

The only information stored is a time_t. But I also intend to put a static
struct tm object in order to permit temporary data transports such as:

struct tm * GetStructTm(time_t);

I have recognized 4 ways to introduce a date:

- from a char * or string (such as RFC 1123, asctime, etc ...)
- from a series of ints such as

        void SetDate (int yy, int mm, int dd, int hh, int min, int sec)

- from a time_t value (both & and *), similar to the copy method
- from a struct tm value (both & and *), similar to the copy method, by
invoking the mktime function.

Can you see any more ways?

Well, that's it ... I'm looking forward to watching the Champions League
semi-final soccer match between my Juventus and Manchester UTD tonight.
FORZA JUVE !!!

That's all folks !!!

Ciao
-Gabriele


-------------------------------------------------

Gabriele Bartolini
U.O. Rete Civica - Comune di Prato
Prato - Italia - Europa

e-mail: [EMAIL PROTECTED]
http://www.po-net.prato.it

-------------------------------------------------
------------------------------------
To unsubscribe from the htdig3-dev mailing list, send a message to
[EMAIL PROTECTED] containing the single word "unsubscribe" in
the SUBJECT of the message.

Reply via email to