HTTP XML via a proxy

Posted on 2005-04-28
Last Modified: 2008-02-01
I am trying to migrat over to a new ISP for some personal stuff that i am doing and i think i might have an issue with this ISP. normally oi like to do a lot of XML stuff and this ISP states:
WebPermission to perform HTTP requests, e.g. to use external XML Web Services. The access must be done using a proxy server on port 3128

now if i am using the code belwo how would i add the proxy server to this?

I called their helpdesk but they where as usfull as air conditioning in Iceland!:)

dim objXMLHTTP
      IF Request("WORD") = "" THEN
            SEARCH_STR = "somthing"
            SEARCH_STR = Request("WORD")
      END IF
Set objXMLHTTP = Server.CreateObject("Microsoft.XMLHTTP")
objXMLHTTP.Open "GET", URL, false

start = InStr(objXMLHTTP.responsetext, "<html>")
finish = InStr(objXMLHTTP.responsetext, "</html>")

amount = finish - start
extract = Mid(objXMLHTTP.responsetext,start,amount)

Response.Write extract

Set objXMLHTTP = Nothing
Question by:willa666
    LVL 23

    Expert Comment

    I have some good news and some bad news for you.

    The good news is that you'd can do it but, you'd have to use the Msxml2.ServerXMLHTTPutility.

    Set objXMLHTTP = Server.CreateObject("Msxml2.ServerXMLHTTP")

    The bad news is that the setup of this object has to be done locally (preferably via the admin) with the use of proxycfg.exe

    Now if they already have done this, then all you have to do is to use the object mentioned.
    LVL 1

    Author Comment

    Hi b1xml2

    I thought as much :(

    well i opened a ticket with the ISP last night and we will see what happens. I guess if they say its a no go then i will ethier have to get a whole server or us another ISP.

    achally could you recommend a good ISP that has a fair developer plan with ASP,MSSQL, xml included?
    LVL 23

    Accepted Solution

    I have dealt with MaximumASP. Pricey but well worth it. They'd do the setup for you as well.

    Featured Post

    Courses: Start Training Online With Pros, Today

    Brush up on the basics or master the advanced techniques required to earn essential industry certifications, with Courses. Enroll in a course and start learning today. Training topics range from Android App Dev to the Xen Virtualization Platform.

    Join & Write a Comment

    I was working on a PowerPoint add-in the other day and a client asked me "can you implement a feature which processes a chart when it's pasted into a slide from another deck?". It got me wondering how to hook into built-in ribbon events in Office.
    Many times as a report developer I've been asked to display normalized data such as three rows with values Jack, Joe, and Bob as a single comma-separated string such as 'Jack, Joe, Bob', and vice versa.  Here's how to do it. 
    This video is in connection to the article "The case of a missing mobile phone (". It will help one to understand clearly the steps to track a lost android phone.
    Polish reports in Access so they look terrific. Take yourself to another level. Equations, Back Color, Alternate Back Color. Write easy VBA Code. Tighten space to use less pages. Launch report from a menu, considering criteria only when it is filled…

    754 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    19 Experts available now in Live!

    Get 1:1 Help Now