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 :-)
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
> 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
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
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
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
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
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
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
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
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
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
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
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
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?
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
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
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
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
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
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
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
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
-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
> > 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
>
>
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
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&
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
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
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="
30 matches
Mail list logo