0

I am trying to call an asp page with request parameters from an asp in my application. Both asp pages reside on the same server. I tried this with MSXML2.ServerXMLHTTP but it did not work. Some code is below

Function URLGet(URL)
  Set Http = CreateObject("MSXML2.ServerXMLHTTP")
  Http.Open "GET",URL,True
  Http.Send
  pagestatus = Http.status
  if pagestatus<>"200" then
    URLGet="Error:"& pagestatus
  else
'   URLGet = Http.ResponseBody
    URLGet = Http.responseText
  end if
End Function

In this URL comes as below

/getchart.asp?Met=node1&SubMet=3232

Please tell me where I am wrong

aaaaaa123456789
  • 5,541
  • 1
  • 20
  • 33
agarwal_achhnera
  • 2,582
  • 9
  • 55
  • 84

0 Answers0