Jump to content
arnereu

NetHTTPRequest PUT and api

Recommended Posts

Hi, 

i would be very happy if someone could maybe help me with this.

I am trying to send a file (.csv) using NetHTTPRequest and PUT. It has to be PUT because the server doesn't accept anything else.

I also need an api to log in. 

In Powershell it would look like this:

The Client would be d329krpq (for example).

Invoke-WebRequest `

-UseBasicParsing `

-Uri https://example.com/d329krpq/filename.csv `

-Method PUT `

-InFile filename.csv `

-Headers @{'x-api-key'='lXViWTzFic9sM8Qqe9Ew7JME8xTdBAOMJHdIjK7XkjQ00OWr'}

 

Thank you very much! Arne

Share this post


Link to post

Start with reading docs then write code in accordance and post it here if you experience any errors.

Why expecting someone writes code for you

Share this post


Link to post

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×