How to set content type in "get" task?

2016-03-18 Thread Al Le
Hello, in our ant script, we use the "get" task to fetch some data from the server via HTTP GET. The server interprets the 'Content-Type' header of the request and delivers the response in the appropriate format (html/xml/json). We'd like to have the result as XML and hence would need to set th

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

2016-03-18 Thread Tom Cleghorn
We've found the missing-link tasks to be really helpful - doesn't appear to be under active development any more though. https://missinglinkcode.wordpress.com/ points to a dead Google Code repo now, but a recent comment from the developer points to https://github.com/alex-sherwin/missing-link/ On

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

2016-03-18 Thread Al Le
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 (u