I use this call

wget --http-user=XXX --http-password=XXX 
http://XXXX/service/local/artifact/maven/redirect?r=snapshots&g=com.uappoint&a=MODULE-A&v=3.0.1-SNAPSHOT&p=exe";

but I am not running 4.0 yet. --http-user and --user should be equiv according 
to man page. 

I connect, get a 301 and then get 200 OK an download the artifact. 

-jr


On Dec 7, 2009, at 2:26 PM, Beat Strasser wrote:

>> On Dec 7, 2009, at 2:13 PM, Beat Strasser wrote:
>>> However, how do you handle authentication? For the above url to work,
>>> you need a valid session cookie. I'd would be ideal to have a single
>>> http call (using wget for example) with HTTP Basic Authentication (with
>>> SSL). Is there already a solution available for this?
>> I just use basic auth and seems to work fine.  Have you tried it?
> 
> Yes. It only works in my browser when I first do a regular nexus web site 
> login. And I get a 401 if I try it with wget:
> 
> wget "https://host/service/local/..."; --user asdf --password asdf
> 
> I'm using Nexus OSS 1.4.0.
> 
> -- 
> Beat Strasser
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
> For additional commands, e-mail: users-h...@maven.apache.org
> 


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
For additional commands, e-mail: users-h...@maven.apache.org

Reply via email to