Summary
This chapter explored the use of Invoke-WebRequest
and how to work with and debug SSL negotiation problems.
Invoke-WebRequest
is used to send requests to web services and get responses. The command makes a raw request available to work with.
Invoke-RestMethod
is frequently used in place of Invoke-WebRequest
and is written to make it easy to work with REST-based services.
Working with REST, we explored simple method calls, authentication, and OAuth negotiation, before exploring REST methods that require authenticated sessions.
SOAP is hard to find these days; it is not as quick or convenient for a developer to create a SOAP-based API. A sample project was used to show how the capabilities of a SOAP service might be discovered and used.
The next chapter explores remoting and remote management.
Learn more on Discord
Read this book alongside other users, PowerShell experts, and the author himself. Ask questions, provide solutions to other readers, chat...