Results 1 to 3 of 3

Thread: Error : MSXML2.XMLHTTP.3.0

  1. #1
    Join Date
    Jan 2009
    Posts
    141

    Error : MSXML2.XMLHTTP.3.0

    Hi friends,

    I am facing an issue with the following code

    Code:
    Function GetURL(str_URL)
    Set obj_XMLHTTP = Server.CreateObject ("MSXML2.ServerXMLHTTP.3.0") 
    obj_XMLHTTP.Open "GET", str_URL, False, "", ""
    obj_XMLHTTP.Send
    GetURL = obj_XMLHTTP.ResponseText
    Set obj_XMLHTTP = Nothing 
    End Function
    I want to have a remote proxy server to make it possible.Can anyone help me out with this issue.

  2. #2
    Join Date
    Nov 2005
    Posts
    403

    Re: Error : MSXML2.XMLHTTP.3.0

    Try to use MSXML2.ServerXMLHTTP.3.0, XMLHTTP should not be used the server context.

  3. #3
    Join Date
    May 2008
    Posts
    2,297

    Re: Error : MSXML2.XMLHTTP.3.0

    Try to use the following code i am sure it will work for you.

    Code:
    Set objXML = Server.CreateObject("WinHTTP.WinHTTPRequest.5.1")
    
    objXML.SetProxy 2, "ip:port"
    
    objXML.Open "GET", "url", False
    
    objXML.setRequestHeader "Content-Type", "content=text/html; charset=iso-8859-1"
    
    objXML.Send
    
    Set xmlDoc = Server.CreateObject("Msxml2.DOMDocument")
    
    xmlDoc.loadXML(objXML.responseText)

Similar Threads

  1. Replies: 5
    Last Post: 04-05-2011, 10:50 AM
  2. Replies: 6
    Last Post: 12-11-2010, 11:37 PM
  3. Server Error: 451, Socket Error: 10053, Error Number: 0x800CCC0F
    By Eigenberg in forum Windows XP Support
    Replies: 3
    Last Post: 03-06-2008, 04:13 PM
  4. Replies: 3
    Last Post: 21-07-2005, 01:07 AM

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Page generated in 1,713,560,363.85689 seconds with 17 queries