Post data from VBscript -


I have a function that needs to accept two parameters- Users and folders! I say that function to VBSScript, and send the parameter with the post method. This is the VBScript function code from which I want to post the data:

  subload document () Const HOST = "http://192.168.0.144/webservice13/service1.asmx/Lock?User = "& Amp; PC \ User & amp; "Folder =" & amp; Set c: \ foldername xmlhttp = CreateObject ("Microsoft.XMLHTTP") xmlhttp.open "POST", HOST xmlhttp.send "" end sub  

Now when I execute this function Trying to get an error message that I have a syntax error! I think the error is in this line:

  console = "http://192.168.0.144/webservice13/service1.asmx/Lock?User="& PC \ User & amp; "Folder =" & amp; C: \ foldername  

How can I solve it, how can I post two variables to this function? Thanks!

I think you can not declare with variable parts with a constant variable. Change line to

  slow user worker, folder, HOST userVar = "PC \ user" folderVar = "c: \ foldername" HOST = "http://192.168.0.144/webservice13/service1" .exmx / lock? User = "& amp; UserWire & amp; "& Amp; folder =" & amp; FolderVar  

Comments

Popular posts from this blog

oracle - The fastest way to check if some records in a database table? -

php - multilevel menu with multilevel array -

jQuery UI: Datepicker month format -