You don't indicate which product you are using (IRIS, Cache, Ensemble) which may impact on some details. However the basic code to load the form data and execute the Post call is going to be the same.
You need an instance of %Net.HTTPRequest. If you are in Ensemble then you would work through the adapter. For Cache or IRIS create an instance of this class and configure it for the server end point.
Add your form data to the request by calling the InsertFormData method.
ex. req.InsertFormData("NameFld", "NameValue")