473,614 Members | 2,076 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Is it possible to monitor request process?

I'm attempting to use an HTTP Module to monitor the progress of the request.
Is there a way to do this? I've attempted to use the Request.TotalBy tes
property, and attempted to use the Request.InputSt ream, but both seem to
only respond after the request has been sent to the server. Any help would
be greatly appreciated.
Nov 17 '05 #1
4 1631
Could you be more specific? What do you mean, "monitor the progress of the
request"?

--
John Saunders
Internet Engineer
jo***********@s urfcontrol.com

"Joel Cade" <jc***@brinkste r.com> wrote in message
news:%2******** *******@tk2msft ngp13.phx.gbl.. .
I'm attempting to use an HTTP Module to monitor the progress of the request. Is there a way to do this? I've attempted to use the Request.TotalBy tes
property, and attempted to use the Request.InputSt ream, but both seem to
only respond after the request has been sent to the server. Any help would be greatly appreciated.

Nov 17 '05 #2
Hi,

If i got you right, you should use ISAPI filter.

Natty Gur, CTO
Dao2Com Ltd.
28th Baruch Hirsch st. Bnei-Brak
Israel , 51114

Phone Numbers:
Office: +972-(0)3-5786668
Fax: +972-(0)3-5703475
Mobile: +972-(0)58-888377

Know the overall picture
*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!
Nov 17 '05 #3
Joel,

There are things you're not telling us.

Your HttpModule captures the BeginRequest event, and you say it keeps track
of the bytes sent. Your remoted object stores the progress so it can be
displayed on another page.

So, what's missing? What is it that you haven't been able to do?
--
John Saunders
Internet Engineer
jo***********@s urfcontrol.com

"Joel Cade" <jc***@brinkste r.com> wrote in message
news:Oq******** ******@TK2MSFTN GP12.phx.gbl...
The user is uploading a file to the server via an upload page. I'd like
to be able to monitor how much of the upload has completed. I have a
remoted object that is storing the progress values, allowing a different
page to display a progress bar. I've implemented an HTTP Module that
captures the BeginRequest event, and will keep track of the number of
bytes that have been succsesfully sent.

Can I do this in a .Net language, or is an ISAPI filter required?

Thanks for the quick reply!

*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!

Nov 17 '05 #4
The HttpModule has access to the Context.Request , which has properties
for examining the Request, but they seem to lock up the processing of
the module until the Request has completed sending. I've tried
examining the Request.TotalBy tes, but this locks up the processing until
the request has been received.

I've attempted using the Request.InputSt ream as well, but accessing this
object also hangs the process until the Request has been completely
received by the server.

Joel Cade, MCSD
Brinkster, Inc.

"Try not to become a man of success, but rather try to become a man of
value." - Albert Einstein

*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!
Nov 17 '05 #5

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

6
342
by: Kalyan | last post by:
Hi I need some idea, Is there any way to write vb code to monitor server activity and if server fails send out email to admin. thanks Kalyan
1
4233
by: Rohit Raghuwanshi | last post by:
Hello all, we are running a delphi application with DB2 V8.01 which is causing deadlocks when rows are being inserted into a table. Attaching the Event Monitor Log (DEADLOCKS WITH DETAILS) here. From the log it looks like the problem happens when 2 threads insert 1 record each in the same table and then try to aquire a NS (Next Key Share) lock on the record inserterd by the other thread. Thanks Rohit
2
3307
by: Jack David | last post by:
Using the code below I am able to monitor a single directory for a new file and then kick-off a process to deal with the file. The question is??? How would I modify this code to be able to monitor a couple of different directories and based upon the directory where the new file is created kick-off a process Example: File A in Directory B starts process C
12
1878
by: Brett Robichaud | last post by:
I need to make access to a reference object threadsafe. My natural instinct was to simply use Monitor.Enter() and Exit(). The problem is that the object behind the reference changes frequently, so my understanding of Monitor indicates this would not protect my object. Example: Bitmap bmp = new Bitmap("x.jpg"); Monitor.Enter(bmp); bmp = new Bitmap("y.jpg"); Monitor.Exit(bmp);
2
1894
by: john.johnhart | last post by:
I have a program that will be launching another process. I want to be able to monitor the files created and/or modified by this second process. I know about FileSystemWatcher, but there's no way to limit it to a specific process that I know of. Any ideas?
3
1438
by: trialproduct2004 | last post by:
Hi all i am having C# application which is processing 5 urls asychronously using webrequest and webresponse classes. What i want is as soon as any url request processing is completed i want to decrement one counter and increment another count. How should i do this in call back. Do i need to use monitor so that no two calls can modified that counter at the same time or without using any sychronous object i can do this. Because when i am...
1
6316
by: Matt | last post by:
I'm writing a plug-in in VB.NET to a an application called DesktopSidebar for Windows. Right clicking my plug-in's "panel" gives shows among other things a Properties Dialog. All I need to do is pop up the dialog in the proper place. After quite a bit of trial and error I came up with this: Declare Function GetWindowRect Lib "user32" (ByVal hwnd As Int32, ByRef lpRect As RECT) As Int32 Public Structure RECT
12
5261
by: Perecli Manole | last post by:
I am having some strange thread synchronization problems that require me to better understand the intricacies of Monitor.Wait/Pulse. I have 3 threads. Thread 1 does a Monitor.Wait in a SyncLock block protecting a resource. Thread 2 and 3 also have a SyncLock block protecting the same resource and after executing some code in their blocks they both do a Monitor.Pulse to hand of the locked resource back to thread 1. While thread 1 has...
5
14808
by: jbenner | last post by:
I have opened a PMR for this with IBM, and am not asking for advice from the DB2 DBA community. I am posting this as an FYI that DB2 Health Monitor, even at the latest version of DB2, still can cause huge problems with slow connect times and heavy resource locking in high concurrency / high transaction volume environments. I have an OLTP with 30-90 transactions per second activity, and start of Health Monitor every 2 hours was crashing our...
0
8182
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
8130
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
1
8279
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
8433
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
1
6088
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
4052
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
1
2568
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
1
1747
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
1425
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.