Programming Tools
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
 
User Name:
Password:
Remember me
 
Go Back   Dev Articles Community ForumsProgrammingProgramming Tools

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Display Modes
 
Unread Dev Articles Community Forums Sponsor:
  #1  
Old February 6th, 2003, 10:56 PM
brpodol brpodol is offline
Junior Member
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Feb 2003
Posts: 1 brpodol User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
ISAPI Filter to process Raw Data

I have two questions and both are regarding an ISAPI filter. The first is:

I have a commercial ISAPI extension running on my webserver but I need to restrict users' access to it based on who they are and on the POST or QueryString information they submit. I know Microsoft does not recommend processing POST data with the OnReadRawData method of an ISAPI filter...but I can't see any other choice. Any suggestions?

The second question is: I've written the filter dll already, and it works fine with IE. Unfortunately, I also need to support Netscape 4.7. With Netscape 4.7, the request takes about 10 secs. to process, it's nearly instantaneous with IE. I've tried to debug by printing the raw data to a file. With Netscape, if I print out the data as the very first thing in the OnReadRawData method, then the request looks fine. However, if I do anything else (i.e. just run a counter loop from 1 to 100) and then print the data, then it does not print out the last two headers and does not print out the POST data. WEIRD!

I thought this seemed like a threading issue so I wrapped the entire function in a CriticalSection but that had no effect.

Again... any Ideas?!? I am big time stumped.

Thanks!!

Reply With Quote
  #2  
Old February 13th, 2004, 10:36 AM
zeroaffinity zeroaffinity is offline
Registered User
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Feb 2004
Posts: 1 zeroaffinity User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
I wrote a filter about a year ago that performed a simple redirection based on the requested page (i.e. processing in a filter) and I never had any problem. That's not to say that problems aren't possible, but depending on how critical your app is you might be able to get away with it until you figure out the right answer.

The infamous "2 cents" = It seems like you should be doing this within the web application.

Not sure about your netscape problem, but you might try doing something with the End..Session notification. Maybe the netscape browser is leaving the connection hangin?

Quote:
Originally Posted by brpodol
I have two questions and both are regarding an ISAPI filter. The first is:

I have a commercial ISAPI extension running on my webserver but I need to restrict users' access to it based on who they are and on the POST or QueryString information they submit. I know Microsoft does not recommend processing POST data with the OnReadRawData method of an ISAPI filter...but I can't see any other choice. Any suggestions?

The second question is: I've written the filter dll already, and it works fine with IE. Unfortunately, I also need to support Netscape 4.7. With Netscape 4.7, the request takes about 10 secs. to process, it's nearly instantaneous with IE. I've tried to debug by printing the raw data to a file. With Netscape, if I print out the data as the very first thing in the OnReadRawData method, then the request looks fine. However, if I do anything else (i.e. just run a counter loop from 1 to 100) and then print the data, then it does not print out the last two headers and does not print out the POST data. WEIRD!

I thought this seemed like a threading issue so I wrapped the entire function in a CriticalSection but that had no effect.

Again... any Ideas?!? I am big time stumped.

Thanks!!

Reply With Quote
Reply

Viewing: Dev Articles Community ForumsProgrammingProgramming Tools > ISAPI Filter to process Raw Data


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 5 hosted by Hostway