[Grub-dev] question about the (new) workunit format
Balinny
balinny at gmail.com
Sat Jan 31 22:24:09 UTC 2009
Giorgos Logiotatidis wrote:
> Hello everyone,
> I 'm fixing the python client to support the new workunit format. I've
> got some new workunits from the experimental run of the dispatch server
> two days ago. The following is an entry from one of these workunits
>
> GET /Fotos/Mayo-05/07-Lula/IMG_2745.JPG HTTP/1.0
> Host: mitago.net
> User-Agent: GrubNG 20080128
> Accept: text/html
>
> and I was wondering... This is a JPG image and we are asking the
> webserver to return text/html. What should the server return? The actual
> image file -which is obviously not text/html- or an error? How should
> the client handle this entry?
>
> Regards,
> Giorgos
The client should just store into the workunit whatever the server
answers, which will usually be an image.
As I mentioned Bartek the other day, there's little point in the clients
retrieving binary data at all (except
perhaps pdfs), but there should be some method for the dispatcher to
transmit that.
I don't think the clients should sniff the asked Accept: header and
reject responses on different mimes. That
would eg. reject xhtml (application/xhtml+xml).
More information about the Grub-dev
mailing list