Before you execute a request, you need to configure it first.
The most common things you want to do:
The XPRIM_HttpRequest has properties Options and Content, through which you can configure the above settings.
Options
The Options property contains members that control the behaviour of the request.
Content
The Content property contains members that allow you to add contents to your request body.