Error when accessing a TOmCat web service

  • Thread starter Thread starter arunkv
  • Start date Start date
A

arunkv

Hi Guys ...

This problem has been bugging me for over 5 days now.
I am trying to access a web service running in a Tomcat Server (a
Linux box) via a C#.Net page and I get the following error:

"The underlying connection was closed: An unexpected
error occurred on a receive."

The flow is as follows.
I use a WebRequest object to get some data from another provider.
Then I pass the data as a query string to this web service.
Then when I receiving the response I get the above error.
The data that I pass in the query string is BASE 64 encoded and is
about 3000 bytes.

So is it bcoz I am sending more than the allowed amount in the query
string?

Thanks for your help.
 
The data that I pass in the query string is BASE 64 encoded and is
about 3000 bytes.

So is it bcoz I am sending more than the allowed amount in the query
string?

Probably. I'm not sure what the HTTP protocol says, but I thought it
was around 2k (2048 bytes) and it was generally accepted that you
shouldn't pass more than about 1k (1024 bytes) in the query string.

Can you do an HTTP POST instead? Here's an example:

http://tinyurl.com/99v7
 
Back
Top