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

2018-05-26 Thread Al Le
He-he, I've just discovered that the GET task does support headers, and does so via nested "header" elements. Since Ant 1.8.0, released in 2010. I don't know how I missed that then. And nobody pointed me to the fact :-)

Re: Re: Ant get task to accept arbitrary header

2017-01-21 Thread Arcadius Ahouansou
Hello AI Le. I got it working now. I will create a Jira ticket and submit a patch early next week. Thank you very much for your help. BTW: in this working implementation, I no longer use to group the header tags...I have now: Arcadius. On 20 January 2017 at 06:45, Al Le wrote: > > Ple

Aw: Re: Ant get task to accept arbitrary header

2017-01-19 Thread Al Le
> Please, after changing the java code, what are the steps required to let > the tag accept children nodes and ? You should have methods like "setHeaders" (for the headers element) and "addHeader"/"addConfiguredHeader" for the nested elements. See https://ant.apache.org/manual/develop.html fo

Re: Ant get task to accept arbitrary header

2017-01-19 Thread Arcadius Ahouansou
Hello. I am using the and get task for downloading files from a remote server. The server requires tokens custom headers for authentication/authorization i.e. I was wondering whether it's a good idea to add that to the current get task. I got the source code from github and did some ch

Ant get task to accept arbitrary header

2017-01-19 Thread Arcadius Ahouansou
Hello. I am using the and get task for downloading files from a remote server. The server requires tokens custom headers for authentication/authorization i.e. I was wondering whether it's a good idea to add that to the current get task. I got the source code from github and did some ch

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 pr

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

2016-03-19 Thread Scot P. Floess
te - so thought I'd give my $0.02. Probably pretty easy to add this via a script-def...let me know if it doesn't make sense or you are curious... On Wed, 16 Mar 2016, Al Le wrote: Hello, in our ant script, we use the "get" task to fetch some data from the server via

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 w

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 an

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

2016-03-18 Thread Tom Cleghorn
better solutions but I noted nobody responded to date - so thought I'd give my $0.02. Probably pretty easy to add this via a script-def...let me know if it doesn't make sense or you are curious... On Wed, 16 Mar 2016, Al Le wrote: Hello, in our ant script, we use the "get" ta

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 ge

Re: Is there a way to make the get task timezone aware?

2008-10-23 Thread Mark Salter
ted enough to know the differences between timezones? The get task asks the http server to make that decision as it is the server that can see the file. > > Why not use rsync and rely on checksums versus timestamps? Rsync has > the added bonus that if the file you're trying to pull down is

Re: Is there a way to make the get task timezone aware?

2008-10-23 Thread Steve Loughran
Settle, William wrote: Thanks for the responses guys. Looks like I have some debugging to do. Neither one of you said it explicitly, but your responses imply that the task IS timezone aware if it is communicating with a server that supplies the information it needs in the response header. I

RE: Is there a way to make the get task timezone aware?

2008-10-23 Thread EJ Ciramella
f the file you're trying to pull down is large, you can restart halfway if it failed halfway. -Original Message- From: Mark Salter [mailto:[EMAIL PROTECTED] Sent: Thursday, October 23, 2008 6:34 AM To: Ant Users List Subject: Re: Is there a way to make the get task timezone aware?

RE: Is there a way to make the get task timezone aware?

2008-10-23 Thread Settle, William
er are you using? Bill From: Steve Loughran Sent: Thu 10/23/2008 9:51 AM To: Ant Users List Subject: Re: Is there a way to make the get task timezone aware? Mark Salter wrote: Settle, William wrote: Is this an issue with the task, the apache server on the other side or something

Re: Is there a way to make the get task timezone aware?

2008-10-23 Thread Steve Loughran
not be the case for your setup. The get task can only work with the data it receives, so I think initially you should take a closer look at the http headers being returned from the remote servers. Wireshark is a tool I use to trace my network. Can you use whatever tools you have to trace the

Re: Is there a way to make the get task timezone aware?

2008-10-23 Thread Mark Salter
se for your setup. The get task can only work with the data it receives, so I think initially you should take a closer look at the http headers being returned from the remote servers. Wireshark is a tool I use to trace my network. Can you use whatever tools you have to trace the network communi

Is there a way to make the get task timezone aware?

2008-10-22 Thread Settle, William
We are using the "get" task to fetch dependenencies from different build servers and have the "usetimestamp" attribute set to true for example: If the client that runs the ant script is in a different time zone than the server that is hosting the jar, the "usetime

RE: FTP ANT GET TASK EXCEPTION

2006-03-30 Thread Karthik
TED] Sent: Thursday, March 30, 2006 2:00 PM To: [EMAIL PROTECTED] Subject: RE: FTP ANT GET TASK EXCEPTION I guess the remote dir should be F:/Target and the server should hold the IP Address. Hope this helps. - Lydia. -Original Message- From: Karthik [mailto:[EMAIL PROTECTED] Sent: Thu

FTP ANT GET TASK EXCEPTION

2006-03-30 Thread Karthik
Hi form I get the Exception on executing the FTP method for "get", to copy the file's present in a remote server to my local system across the OS [ Linux to windows ] Can some body tell me why am i getting this exception, and how to change it accordingly error during FTP tran

RE: get task problem : solved

2005-07-14 Thread hind.lwahhabi
Fool me:) Thanks it works!(i ran it at home and forgot to change firewall options when coming to the office). thanks again. -Original Message- From: Burgess, Benjamin [mailto:[EMAIL PROTECTED] Sent: Thu 7/14/2005 3:16 PM To: Ant Users List Subject: RE: get task problem Looks like

RE: get task problem

2005-07-14 Thread Burgess, Benjamin
Subject: FW: get task problem -Original Message- From: Lwahhabi, Hind Sent: Thu 7/14/2005 1:55 PM To: Ant Users List Subject: get task problem Hello gentle people, oSome nice guy resolved a bug in the ant-contrib project and i am tryring to rebuild the ant-contrib jar with the

FW: get task problem

2005-07-14 Thread hind.lwahhabi
-Original Message- From: Lwahhabi, Hind Sent: Thu 7/14/2005 1:55 PM To: Ant Users List Subject: get task problem Hello gentle people, oSome nice guy resolved a bug in the ant-contrib project and i am tryring to rebuild the ant-contrib jar with the classes modified; £When running

RE: Question about the ant "get" task

2003-11-20 Thread Jan . Materne
> > Duy, Does any body has experience with ant "get" task? I try to > > download a ZIP or JAR file from a remote server through HTTP > > protocol, > > Check your URL, maybe you get an error page instead of the the archive > you expect, because > >

Re: Question about the ant "get" task

2003-11-20 Thread Stefan Bodewig
On Thu, 20 Nov 2003, Anqin Zou <[EMAIL PROTECTED]> wrote: > Duy, Does any body has experience with ant "get" task? I try to > download a ZIP or JAR file from a remote server through HTTP > protocol, Check your URL, maybe you get an error page instead of the the ar

RE: Question about the ant "get" task

2003-11-20 Thread Jan . Materne
about the ant "get" task > > > Duy, > Does any body has experience with ant "get" task? >I try to download a ZIP or JAR file from a remote server > through HTTP > protocol, but the file that I got can not be unzipped with > the ant "unzip&

Question about the ant "get" task

2003-11-20 Thread Anqin Zou
Duy, Does any body has experience with ant "get" task? I try to download a ZIP or JAR file from a remote server through HTTP protocol, but the file that I got can not be unzipped with the ant "unzip" task either other ZIP tools. Any body know what is wrong with it? Ev

RE: Get task over HTTPS

2003-07-14 Thread Sean Leblanc
al Message- From: Alexey Solofnenko [mailto:[EMAIL PROTECTED] Sent: Friday, July 11, 2003 2:41 PM To: 'Ant Users List' Subject: RE: Get task over HTTPS I am totally confused about what version of JDK you are using, but I remember that in 1.3 at least you need to add a security provid

Get Task

2003-07-08 Thread Pritesh saharey
Hi all, Iam using Get task like this http://www.don-robertson.com/MP3/India/Tabla/Dhamar%20Tal%20-%20Raja%20Chatrapati%20Singh.mp3"; dest="/home/pritesh/PriteshSonngs/Rhythm/Pakawaj/DhamarTal-RajaChatrapatiSingh.mp3" verbose="true" usetimestamp="