Can one of you tell me if this is the right logic?
void Upload()
{
Read entire file
Load Request stream with file byte[]
Request method = PUT
IAsyncResult r = (IAsyncResult) req.BeginGetResponse(new AsyncCallback(a, b)
wait for callback
}
"Nandal" <(E-Mail Removed)> wrote in message
news:EE7FD291-1BF2-4A67-99FE-(E-Mail Removed)...
> SEE REMARKS:
>
http://msdn.microsoft.com/library/de...icatetopic.asp
>
> This is little stupidity in NET CF if preauthenticate is true. Framework
does not send HTTP-AUTHORIZATION header in first POST request. Try to make
one small GET request only to
> make connection and then send data with POST.Otherwise you need to buffer
data
> to handle 401 WWW-Authenticate Basic response from server.
>
> ----- Alex Feinman [MVP] wrote: -----
>
> I think if you set AllowWriteStreamBuffering to false on the outgoing
> request, it will send your data as you write them into the output
stream.
> This will allow you to update progress yourself.
>