|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
Stay one step ahead of the competition. Evaluate and give feedback
on some of the hottest web development tools on the market today.
Make your opinion heard! Click
Here
|
|
#1
|
|||
|
|||
|
How to define user-agent in ant task
Hello,
I'm using the ant task Get to download a file from the internet. I'm running the ant from the eclipse, and the request beeing send contains: User-Agent: Java/1.6.0_03 (I used Fiddler application to figer this out). As a result, i'm not getting the expected file. How can i tell the ant or the Java not to send the User-Agent parameter? Thanks! |
|
#2
|
|||
|
|||
|
If someone else will have this problem - this is the result.
The ant task getMethod allows to configure the html header: Code:
<getMethod url=" " responsedatafile="c:\\out.xml">
<header name="User-Agent" value="testva"></header>
</getMethod>
|
![]() |
| Viewing: Dev Shed Forums > Programming Languages > Java Help > How to define user-agent in ant task |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|