A Flash Developer Resource Site

Results 1 to 6 of 6

Thread: HELP! Problems with proxy.asp from Macromedia's site and company firewall

  1. #1
    Registered User
    Join Date
    Aug 2002
    Posts
    9

    HELP! Problems with proxy.asp from Macromedia's site and company firewall

    I'm having problems with the proxy.asp page from Macromedia grabbing the RSS feed and bringing it past my companies firewall. (Below is that script) At least I think it's a firewall issue. What could be the problem? Is there something I can change or add to the asp script to get it past the firewall? I tried to talk to my IS department and they never even heard of RSS (how sad).
    Here's the error that gets returned:

    Error Type:
    (0x80072EE2)
    /proxy.asp, line 14


    this is line 14:
    MyConnection.Send


    Any suggestions would be much appreciated.

    Code:
    	Response.Buffer=True 
    	Dim MyConnection, TheURL
    	
    	' Specifying the URL
    	TheURL = "http://www.macromedia.com/desdev/resources/macromedia_resources.xml"
    	
    	 Set MyConnection = Server.CreateObject("Microsoft.XMLHTTP")
    	' Connecting to the URL
    	MyConnection.Open "GET", TheURL, False
    		
    	' Sending and getting data
    	MyConnection.Send 
    	TheData = MyConnection.responseText
    
    	'Set the appropriate content type
    	Response.ContentType = MyConnection.getResponseHeader("Content-Type")
    	Response.Write (TheData)
    
    	Set MyConnection = Nothing

  2. #2
    Senior Member tupps's Avatar
    Join Date
    Jan 2001
    Location
    Melbourne
    Posts
    2,035
    The best way to debug this is to get access to your firewall logs (or exception reports). Get into the office in the morning/night when no one else is around and run your code. That way you know that you are the only person access the firewall at the time.

    My guess is that the best way to fix this is to change the firewall.

    Thanks

    Luke
    Flash-XML FAQ
    http://www.tupps.com/flash/faq/

  3. #3
    Member
    Join Date
    Jan 2003
    Location
    Australia, Adelaide (SA)
    Posts
    97
    Hi mpusateri,

    The open method has two extra optional parameters, bstrUser and bstrPassword. Add them after the false (Async) parameter.

    You might need to get an account to use for the application, as I doubt you'll want to use your network credentials. Talk to the IT department to get that.

    Hope that helps!
    Tim Walters
    Senior Developer
    XML Evangelist
    "XML isn't a language, it's a way of life!"

  4. #4
    Registered User
    Join Date
    Aug 2002
    Posts
    9
    Great.. Thanks for the info, I'll give it a try as soon as I can.

    Thank You!

  5. #5
    Registered User
    Join Date
    Aug 2002
    Posts
    9
    Just tried it and it doesn't work. I guess this is a stupid question, but the bstrUser & bstrPassword is used to get in and out of my firewall right, and not the server holding the XML doc? And is that correct below... the UN and PWD like I have it (of course real UN and PWD inserted), or should they be in quotes or something?

    Thanks

    Code:
    	Response.Buffer=True 
    	Dim MyConnection, TheURL
    
    	' Specifying the URL
    	TheURL = "http://www.macromedia.com/desdev/resources/macromedia_resources.xml"
    	 Set MyConnection = Server.CreateObject("Microsoft.XMLHTTP")
    
    	' Connecting to the URL
    	MyConnection.Open "GET", TheURL, False, bstrUser, bstrPassword
    	
            ' Sending and getting data
    	MyConnection.Send 
    	TheData = MyConnection.responseText
    
    	'Set the appropriate content type
    	Response.ContentType = MyConnection.getResponseHeader("Content-Type")
    	Response.Write (TheData)
    	Set MyConnection = Nothing

  6. #6
    Senior Member
    Join Date
    Feb 2001
    Posts
    1,835
    that's ASP, right? You'd probably be better off moving the thread into the backend/server board, more people with ASP knowledge will read it there...

    - n.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  




Click Here to Expand Forum to Full Width

HTML5 Development Center