Skip to main content
Skip table of contents

Errors using Curl calling Runtime API using MS Powershell


DATPROF Runtime allows you to use an API.

This API can be accessed using tools like wget or curl.

When using Powershell you might encounter this Error: Invoke-WebRequest : A positional parameter cannot be found that accepts argument 'X-auth-token:.........


This is caused by the Curl alias defined in Powershell 

This alias has the following definition: Alias           curl -> Invoke-WebRequest

This curl alias does not work like native curl.

Unfortunately it takes precedence over your local curl installation.

To fix this probem remove the alias using the remove-item cmdlet:  PS> remove-item alias:curl

then try again

To read a discussion about using and changing cURL in Powershell check this:

JavaScript errors detected

Please note, these errors can depend on your browser setup.

If this problem persists, please contact our support.