🎉 Celebrating 25 Years of GameDev.net! 🎉

Not many can claim 25 years on the Internet! Join us in celebrating this milestone. Learn more about our history, and thank you for being a part of our community!

ASP

Started by
2 comments, last by CJ 24 years, 6 months ago
Hi, I don''t think this question belongs here, but I''ll do it anyway. I got everything to work with my browser (so far), and I found one little problem, a problem with sites generated by ASP. If you have a ASP server, and go to that site with the browser. It returns an error, and doesn''t load anything but a few lines, those lines indicating the problem that the browser isn''t a browser. Or sumthing like that. Anyway.....I am asking if any one of you knows how ASP works, how to make my browser SEEM to be a real browser. Thanks in advance Dance with me......

http://members.xoom.com/CJdeVos/index.htm

Advertisement
Do you get any http-header returned?
I get the following returned:

< font face="Arial" size=2 >
< p >Microsoft VBScript runtime < /font > < font face="Arial" size=2 >error ''800a000d''< /font >
< p >
< font face="Arial" size=2>Type mismatch: ''BrowserMajor''< /font >
< p >
< font face="Arial" size=2 >/include/tktool.inc< /font >< font face="Arial" size=2 >, line 63< /font >



Dance with me......

http://members.xoom.com/CJdeVos/index.htm

Because of the variable name BrowserMajor my guess is that the ASP-script is trying to check what version your browser has. This is done through the environment variable called HTTP_USER_AGENT which might look something like: Mozilla/4.0 (compatible; MSIE 5.5; Windows 95)

The ASP-script is probably not checking for errors, instead it assumes that HTTP_USER_AGENT always will be set to a certain format, and when it isn''t (as in your case) it fails.

HTTP_USER_AGENT may be set in the http-header before you GET the page to fool the ASP-script into thinking that it is a browser that''s requesting the page.

This topic is closed to new replies.

Advertisement