Wrox Programmer Forums

Need to download code?

View our list of code downloads.

Go Back   Wrox Programmer Forums > ASP.NET and ASP > ASP 3 Classic ASP Active Server Pages 3.0 > Classic ASP XML
Password Reminder
Register
Register | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read
Classic ASP XML Using ASP 3 and XML. See also the XML category for more XML discussions not relating to ASP. NOT for ASP.NET 1.0, 1.1, or 2.0
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Classic ASP XML section of the Wrox Programmer to Programmer discussions. This is a community of tens of thousands of software programmers and website developers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining today you can post your own programming questions, respond to other developersí questions, and eliminate the ads that are displayed to guests. Registration is fast, simple and absolutely free .
DRM-free e-books 300x50
Reply
 
Thread Tools Display Modes
  #1 (permalink)  
Old May 30th, 2017, 02:56 AM
Registered User
Points: 10, Level: 1
Points: 10, Level: 1 Points: 10, Level: 1 Points: 10, Level: 1
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: May 2017
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Default ServerXMLHTTP returning the same responseText with simultaneous requests

Hello,

It's the first time I post something in a forum (although I check them all the time), so I hope I explain myself right.

I'm stuck in a problem with ServerXMLHTTP.

When there's just one individual request, it returns the expected result. But if they happen at the same time, responseText returns for the slowest one the same result as the faster simultaneous one.

It's been reported by the users, but I tested it running the pages on two different browsers in my pc. I trigger one request and immediately I click on a different one on a different instance of the browser or a different browser.

Here is my code:

Code:
Set xmlHttp = Server.Createobject("MSXML2.ServerXMLHTTP")
On Error Resume Next
xmlHttp.Open "GET", "http://someserver/somepath/?somequerystring" , False
xmlHttp.setOption 2, 13056 'ignore all SSL Cert issues
If Err Then 'handle errors
Response.Write(Err.Description & " [0x" & Hex(Err.Number) & "]<BR><BR>")
Response.End
End If
On Error Goto 0
xmlHttp.setRequestHeader "User-Agent", "asp httprequest"
xmlHttp.setRequestHeader "Content-Type", "text/json"
xmlHttp.Send
resultatJSON = xmlHttp.responseText
xmlHttp.abort()
set xmlHttp = Nothing
Hope my explanation was clear. And sorry if I misused some term, English is not my mother tongue.

Many thanks in advance!!
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Classic ASP: ServerXMLHTTP returning the same responseText with simultaneous requests TeresaS Classic ASP Professional 0 May 29th, 2017 12:05 PM
Multiple, Simultaneous, Asyncronous Requests fullingdale Javascript How-To 2 May 26th, 2009 08:23 AM
ServerXMLHTTP.3.0 problem returning XML JasonSigs XML 2 June 1st, 2007 01:18 AM
responseText not working in FireFox Coyote21 BOOK: Professional Ajax ISBN: 978-0-471-77778-6 0 July 13th, 2006 05:53 AM
Multiple simultaneous asynchronous requests mehdi62b ASP.NET 1.0 and 1.1 Professional 18 August 25th, 2004 04:18 PM



All times are GMT -4. The time now is 05:24 AM.


Powered by vBulletin®
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
© 2013 John Wiley & Sons, Inc.