Jump to content
Registration disabled at the moment Read more... ×
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

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now

×