Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. Web Development
  3. ASP.NET
  4. http request error

http request error

Scheduled Pinned Locked Moved ASP.NET
sysadminhelptutorialquestion
1 Posts 1 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • Y Offline
    Y Offline
    ybasha
    wrote on last edited by
    #1

    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

    1 Reply Last reply
    0
    Reply
    • Reply as topic
    Log in to reply
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes


    • Login

    • Don't have an account? Register

    • Login or register to search.
    • First post
      Last post
    0
    • Categories
    • Recent
    • Tags
    • Popular
    • World
    • Users
    • Groups