GetRequestStream Strange Behaviour
by ashehu@gmail.com on 10/31/2007 7:12:00 PM
Hi all,
I have two applications on the same machine with exactly the same
code. One is a Console application that is used for testing and the
other runs in a sharepoint web part. The Console application works
fine, but calling this:
using (Stream requestStream = request.GetRequestStream())
{
requestStream.Write(bytes, 0, bytes.Length);
requestStream.Close();
}
on the web part always results n a timeout exception.
Any help appreciated.
Thanks,
Ammar
Re: GetRequestStream Strange Behaviour
by Vadym Stetsiak on 11/2/2007 2:46:00 AM
Hello, ashehu@gmail.com!
Can you give more details about requests your application is making? Are
they HTTP requests?
Do you use HttpWebRequest?
--
With best regards, Vadym Stetsiak.
Blog: http://vadmyst.blogspot.com
You wrote on Thu, 01 Nov 2007 02:12:23 -0700:
a> Hi all,
a> I have two applications on the same machine with exactly the same
a> code. One is a Console application that is used for testing and the
a> other runs in a sharepoint web part. The Console application works
a> fine, but calling this:
a> using (Stream requestStream = request.GetRequestStream())
a> {
a> requestStream.Write(bytes, 0, bytes.Length);
a> requestStream.Close();
a> }
a> on the web part always results n a timeout exception.
a> Any help appreciated.
a> Thanks,
a> Ammar
Re: GetRequestStream Strange Behaviour
by ashehu@gmail.com on 11/2/2007 1:20:00 AM
Hi,
> Can you give more details about requests your application is making? Are
> they HTTP requests?
> Do you use HttpWebRequest?
yes I am using a HttpWebRequest object and have set all the neccessary
propoerties: Timeout,credentials and the like. The request is targeted
towards our exchange server and I have noticed that ssl is playing a
role. Sharepoint is probably changing substituting https with http.
Console application also fails if I use http.