Web Wiz - Green Windows Web Hosting

  New Posts New Posts RSS Feed - Forum APIs
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

Forum APIs

 Post Reply Post Reply
Author
xrum View Drop Down
Newbie
Newbie


Joined: 27 September 2010
Location: US
Status: Offline
Points: 2
Post Options Post Options   Thanks (0) Thanks(0)   Quote xrum Quote  Post ReplyReply Direct Link To This Post Topic: Forum APIs
    Posted: 27 September 2010 at 9:28pm
here is my code:


<%

url = "http://dev.yy.net/forum/HttpAPI.asp?action=GetLastPostsByForumID&Username= xx&Password=zz&ForumID=2&MaxResults=5"
Dim xmlhttp
Set xmlhttp = Server.Createobject("MSXML2.ServerXMLHTTP") 
xmlhttp.setTimeouts 5000, 60000, 10000, 10000 
xmlhttp.Open "GET",,false 
xmlhttp.send ""
response.write(xmlhttp.responsetext) 
set xmlhttp = nothing 
%>

i get: 
msxml3.dll error '80072ee2'

The operation timed out 

but when i put my url in the browser, i get the xml just fine, please help
Back to Top
WebWiz-Bruce View Drop Down
Admin Group
Admin Group
Avatar
Web Wiz Developer

Joined: 03 September 2001
Location: Bournemouth
Status: Offline
Points: 9844
Post Options Post Options   Thanks (0) Thanks(0)   Quote WebWiz-Bruce Quote  Post ReplyReply Direct Link To This Post Posted: 28 September 2010 at 8:11am
If you are trying to run this on a server it could be that port 80 outbound is blocked or is going through a proxy server.

You might also want to try a different way to create the MSXML Object as there are different versions that work in different ways:-

CreateObject("MSXML2.XMLHTTP.3.0")

CreateObject("MSXML2.XMLHTTP")  

CreateObject("Microsoft.XMLHTTP") 

The last one is less likely to cause an server error as I believe it uses an Active X Component in the IE browser on the server, so it is like IE making the connection. However, it has been many years since I looked in to the MS XML HTTP Component, but I am sure that the last is more compatible with various Windows servers.


Edited by WebWiz-Bruce - 28 September 2010 at 8:19am
Back to Top
 Post Reply Post Reply

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 12.08
Copyright ©2001-2026 Web Wiz Ltd.


Become a Fan on Facebook Follow us on X Connect with us on LinkedIn Web Wiz Blogs
About Web Wiz | Contact Web Wiz | Terms & Conditions | Cookies | Privacy Notice

Web Wiz is the trading name of Web Wiz Ltd. Company registration No. 05977755. Registered in England and Wales.
Registered office: Web Wiz Ltd, Unit 18, The Glenmore Centre, Fancy Road, Poole, Dorset, BH12 4FB, UK.

Prices exclude VAT at 20% unless otherwise stated. VAT No. GB988999105 - $, € prices shown as a guideline only.

Copyright ©2001-2026 Web Wiz Ltd. All rights reserved.