Re: How to set content type in "get" task?

Al Le <[email protected]>
Newsgroups gmane.comp.jakarta.ant.user
Message-ID <[email protected]>
> No, the get task doesn't support setting the Accept-Header.

> Probably pretty easy to add this via a script-def...

Thank you for the quick responses!

I'll try it with JavaScript. I just wanted to make sure I didn't miss 
something. Basicly, I'll have to implement the get task in JavaScript 
(use Java classes from JavaScript) and add one more header, right?

Still, I think that a possibility to specify HTTP headers (e.g. via 
nested elements) would be a useful addition to the get task.
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.