lua-users home
lua-l archive

Re: Access received headers from socket.http in storing sink

[Date Prev][Date Next][Thread Prev][Thread Next] [Date Index] [Thread Index]


Hi,
If you don't mind the extra connection, you can simply send
a HEAD request before the GET request. That will give you
the headers independently.
Oh, why the inconsistency (I'll check upon the reason tomorrow, but
you got me curious) ?
It's not an inconsistency. The HEAD method returns *just*
the headers. :)
Sorry, I meant why would HEAD give me headers independently while GET
would concatenate them (note: I can't check upon the sources right now
so I might misunderstand this)
HEAD also conctenates. We were talking about a different
issue. The issue of having access to "content-length" before
downloading, right? There can't be more than one
"content-length" per response header...
Regards,
Diego

AltStyle によって変換されたページ (->オリジナル) /