I know, I mean without contacting the URI itself in anyway. It's just a hint to save a HTTP request, even if it's a short one (mobile environment needs). FWIW, even a length attribute could be useful to save an HEAD request (always to be considered no more than a hint).
On Thu, Jul 18, 2013 at 10:30 AM, Ashley Ward <[email protected]> wrote: > On 18 Jul 2013, at 08:30, Daniele Ricci <[email protected]> wrote: > >> Greetings, >> I found out to be needing a "type" attribute in the <url/> element in >> XEP-0066 [1]. I guess it could be useful as a hint to know in advance >> the mime type of what we are going to download (e.g. for http URIs). >> What do you think? > > Could you not just do an HTTP HEAD request to discover the MIME type if you > need to know the type before downloading it? > > -- > Ash -- Daniele
