archiva-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Olivier Lamy <ol...@apache.org>
Subject Re: How to invoke secured Rest API from command line?
Date Mon, 15 Dec 2014 22:42:38 GMT
Hi,
With wget use
--http-user=USER
--http-password=PASS

With curl

-u, --user USER[:PASSWORD]


HTH
Olivier


On 16 December 2014 at 06:25, Gero Vermaas <gvermaas@xebia.com> wrote:
>
> Hi,
>
> I want to invoke one of the rest calls from the command line to trigger a
> download of the remote repository. The URL below should do the trick, but I
> get an HTTP 403 response. I did validate that the username/password is
> correct.
>
> wget http://admin:admin1@localhost
>
> :8080/restServices/archivaServices/repositoriesService/scheduleDownloadRemoteIndex?repositoryId=central
>
> Is there a way to invoke the secured rest calls from the command line using
> wget or curl?
>
> Regards,
>
> Gero
>


-- 
Olivier Lamy
http://twitter.com/olamy | http://linkedin.com/in/olamy

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message