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

2016-03-19 Thread Chris Barlock
Is curl an option? You can run it with the Ant exec task. Chris From: Al Le To: Ant Users List Date: 03/17/2016 02:33 AM Subject:Re: How to set content type in "get" task? > No, the get task doesn't support setting the Accept-Header. > Probably pretty easy to add this via

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

2016-03-19 Thread Scot P. Floess
I've kept your email in my inbox wanting to see if I could help. Now that I'm trying - I'm surprised you can't specify the Content-Type. I do a fair bit of REST work so I absolutely understand your desire for this functionality. I found ant-contrib has a post task but that won't help you.

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

2016-03-19 Thread Al Le
Is curl an option? You can run it with the Ant exec task. Yes, I already considered using curl or wget. It will be simpler than implementing the feature from scratch in JavaScript (or in some other language). - To unsubscri

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

2016-03-19 Thread Stefan Bodewig
On 2016-03-16, Al Le wrote: > We'd like to have the result as XML and hence would need to set the > content type header of the HTTP request. > Is this possible using the standard get task? If yes, how? No, the get task doesn't support setting the Accept-Header. The feature would be useful, but A