Hello
Here is the code to submit the form to sharepoint,
Hello Welcome to the Forums,
Here is the code for Submit to SharePoint,
var sharePoint = XDocument.DataAdapters[submitAdapterName];
sharePoint.FileName = "File Name";
sharePoint.FolderURL = "SharePoint Libray Path";
sharePoint.Submit();
Note: The above code in Jscript
Here is one more link to submit form to sharepoint using ‘HTTPWebRequest'
http://www.infopathdev.com/forums/p/1096/3893.aspx#3893