Hi,
I am using C# and IIS for a application. I receive a request message,
process it then send a response back to my client. The problem I have,
when I call Response.Write the message sent to my client is a very large
message (I am guessing IIS adds it on).
Is there some way I send the data without all this addtional information
in it, perhaps a different approach to Response.Write ?
It looks like there is a lot of headers and IIS information add, version
numbers. It really does add a sever overheard to my application (I am
using GPRS and thats charge by the byte :| )
Any help on this would be appreciated.
Regards,
Steven
*** Sent via Developersdex http://www.developersdex.com *** 7 2177
Steven,
What else is on the page in addition to your code that is in the call to
Response.Write? Headers are part of the HTTP specification, you aren't
going to be able to send anything over HTTP without them.
Can you give an example of the output that is being sent to the client,
and then we can try and help you determine what to remove?
Hope this helps.
--
- Nicholas Paldino [.NET/C# MVP]
- mv*@spam.guard.caspershouse.com
"Steven Blair" <st**********@btinternet.com> wrote in message
news:u7**************@TK2MSFTNGP15.phx.gbl... Hi,
I am using C# and IIS for a application. I receive a request message, process it then send a response back to my client. The problem I have, when I call Response.Write the message sent to my client is a very large message (I am guessing IIS adds it on). Is there some way I send the data without all this addtional information in it, perhaps a different approach to Response.Write ?
It looks like there is a lot of headers and IIS information add, version numbers. It really does add a sever overheard to my application (I am using GPRS and thats charge by the byte :| )
Any help on this would be appreciated.
Regards,
Steven *** Sent via Developersdex http://www.developersdex.com ***
Hi,
What client are you using?
This seems to be an app running on a PPC or a smartphone.
Unfortunally HTTP needs to send several header back anf forth so maybe you
will be better with a direct TCP connection
cheers,
--
Ignacio Machin,
ignacio.machin AT dot.state.fl.us
Florida Department Of Transportation
"Steven Blair" <st**********@btinternet.com> wrote in message
news:u7**************@TK2MSFTNGP15.phx.gbl... Hi,
I am using C# and IIS for a application. I receive a request message, process it then send a response back to my client. The problem I have, when I call Response.Write the message sent to my client is a very large message (I am guessing IIS adds it on). Is there some way I send the data without all this addtional information in it, perhaps a different approach to Response.Write ?
It looks like there is a lot of headers and IIS information add, version numbers. It really does add a sever overheard to my application (I am using GPRS and thats charge by the byte :| )
Any help on this would be appreciated.
Regards,
Steven *** Sent via Developersdex http://www.developersdex.com ***
Hi,
Thanks for the reply.
I think this is more to do with IIS, it looks like a xml / html message
with one of the tags holding the actual response message and various
strings with ASP.NET and IIS on it.
At the moment I can't get you the exact text returned as the POS we are
using is getting used for a demo, so cant get the debug information you
requested.
I am sure if I was just using straight http that the message would be
very small, but IIS adds a whole load of additional information.
I managed to reduce the message slightly byt turning off Custom HTTP
Headers (this removed 1 string from the response message, something like
"Powered by ASP.NET")
Any more help would appreciated.
Regards,
Steven
*** Sent via Developersdex http://www.developersdex.com ***
The client is a embedded device with a GPRS modem. IO understand the
need for some header information, but this is 500+ bytes of additional
information.
Hopefully this is is enough information for you guys to help me out. I
will try and get a debug capture of the response. Unless any of you guys
know how to get IIS to log any data it sends back?
Regards,
Steven
*** Sent via Developersdex http://www.developersdex.com ***
Hi,
The thing is if the client is expecting a HTTP connection it will need the
headers. maybe you can do an ISAPI to send only the minimun amount of info,
but I"m not very sure about that.
cheers,
--
Ignacio Machin,
ignacio.machin AT dot.state.fl.us
Florida Department Of Transportation
"Steven Blair" <st**********@btinternet.com> wrote in message
news:%2****************@tk2msftngp13.phx.gbl... The client is a embedded device with a GPRS modem. IO understand the need for some header information, but this is 500+ bytes of additional information.
Hopefully this is is enough information for you guys to help me out. I will try and get a debug capture of the response. Unless any of you guys know how to get IIS to log any data it sends back?
Regards,
Steven *** Sent via Developersdex http://www.developersdex.com ***
Steven Blair wrote: Hi,
I am using C# and IIS for a application. I receive a request message, process it then send a response back to my client. The problem I have, when I call Response.Write the message sent to my client is a very large message (I am guessing IIS adds it on). Is there some way I send the data without all this addtional information in it, perhaps a different approach to Response.Write ?
It looks like there is a lot of headers and IIS information add, version numbers. It really does add a sever overheard to my application (I am using GPRS and thats charge by the byte :| )
Any help on this would be appreciated.
Regards,
Steven
Is this sent from an aspx file where you are getting the contents of that aspx
along with your code?
Either remove that code (if possible), or (in any case) start with Response.Clear
(you might also clear the headers), and end with Response.End. This should
remove a lot of "extra" code.
By the way, for asp.net specific questions (like this) there is a specific newsgroup:
microsoft.public.dotnet.framework.aspnet
Hans Kesting
Here is some of the response:
Date: Wed, 01 Jun, 2005 16:54:07 GMT
X-AspNet-Version: 1.1.4322
Set-Cookie: ASP.NET_SessionId=<string of chars>
Path=/
Cache-Control: private
Content-Type: text/html: charset=utf-8
Content-Length: 368
I have tried using a program called ServerMask and MS UrlScan (This
seemed to removed some of the data).
Sorry for posting in here, I dind't think to put it in a ASP.NET forum,
I was hoping I could resolve this issue with some C# code.
Regards,
Steven
*** Sent via Developersdex http://www.developersdex.com *** This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
by: Gary |
last post by:
I am having a strange problem that I cannot solve. I have an asp page that I use for a user to login and gain access to other pages. When the user logs in I set a couple of session variables like...
|
by: Jack |
last post by:
Hi,
Here is my problem:
I am logging in to a page, where the page retrieves a record from a database.
The text boxes are used in the display formto let the users update the
fields,
if they...
|
by: Mark |
last post by:
Hi...
I've come across some weird bug with Response.Cookies. Or maybe it will be
called "by design" but for the life of me I can't figure out what purpose it
would serve. If you're setting a...
|
by: msuk |
last post by:
All,
I have a well form block of XML that is stored in a C# string type and I
just simply want to display it in the browser using Response.Write but when I
try this I get the following error:
...
|
by: Brad |
last post by:
I have a response filter which injects "standard" html into my pages. The
filter works fine when the initial stream is small enough not to
buffer...or....if I have a large unbuffered stream (i.e. I...
| |
by: matthew |
last post by:
Hi all,
I am now writing a aspx that get a session variable (string) and then write
it out using Response.Write.
The string length is: 494710.
But Response.Write only write the string...
|
by: Russ |
last post by:
My web app writes some binary data to a file at the client site via
Response.Write and Response.BinaryWrite. This action is accomplished
in response to a button click, with C# code behind as...
|
by: raj chahal |
last post by:
Hi there
I need to be able to print on screen when I check if a value within a db
<td>
<% if ((Recordset1.Fields.Item("profile1").Value) <>
"") then response.Write"Pro1<br>" &...
|
by: Jim Rodgers |
last post by:
I have a big asp file that has an error under certain conditions -- totally
repeatable. However, it only fails when I set response.buffer = True at the
top. WHen I set it False in order to debug...
|
by: Jim in Arizona |
last post by:
I'm brand new at ajax. In fact, about 20 minutes ago was the first time I
got it to work. The problem I'm having on another page did not work,
however.
I'm running into the following error:
...
|
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,...
| |
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...
|
by: Oralloy |
last post by:
Hello folks,
I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>".
The problem is that using the GNU compilers,...
|
by: jinu1996 |
last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
|
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...
|
by: conductexam |
last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
|
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...
| |
by: adsilva |
last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
|
by: muto222 |
last post by:
How can i add a mobile payment intergratation into php mysql website.
| |