http request error
-
Hi there, i have the folder with may word document am using the below function to send word document to a PDFserver and convert into PDF, for example i will send(infile,outfile)-> (test.doc,test.pdf) but when i send the request it converting all the word file inside the folder any suggestions?? private string CallAsService(string inFile, string strPdfFunctionName, string strApproverName) { XMLHTTPRequestClass oXMLHTTP = new XMLHTTPRequestClass(); string [] parsePath = inFile.Split('\\'); string strDocumentNumber = parsePath[ parsePath.Length - 3].ToUpper().Trim(); //string serverUrl = ConfigurationSettings.AppSettings.Get("YtiPdfUrl").Trim()+ "?inFile=" + Server.UrlEncode(inFile) + "&DocNum=" + strDocumentNumber + "&do=" + strPdfFunctionName.Trim().ToUpper() + "&Name=" + strApproverName ; string serverUrl = _pdfServer1.Trim()+ "?inFile=" + Server.UrlEncode(inFile) + "&DocNum=" + strDocumentNumber + "&do=" + strPdfFunctionName.Trim().ToUpper() + "&Name=" + strApproverName ; oXMLHTTP.open("POST", serverUrl, (object)false,(object)"",(object)""); oXMLHTTP.setRequestHeader("Content-Type", "application/x-www-form-urlencoded"); oXMLHTTP.send(null); return oXMLHTTP.responseText; } regards ybasha