Al Le
2016-03-16 19:05:05 UTC
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 the content type header of the HTTP request.
Is this possible using the standard get task? If yes, how?
I've only found the 'useragent' attribute in the task but no means to set some other HTTP headers.
Thanks!
AL
---------------------------------------------------------------------
To unsubscribe, e-mail: user-***@ant.apache.org
For additional commands, e-mail: user-***@ant.apache.org
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 the content type header of the HTTP request.
Is this possible using the standard get task? If yes, how?
I've only found the 'useragent' attribute in the task but no means to set some other HTTP headers.
Thanks!
AL
---------------------------------------------------------------------
To unsubscribe, e-mail: user-***@ant.apache.org
For additional commands, e-mail: user-***@ant.apache.org