How can I set WebClient, UploadValues not to wait for the server

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • liadmz
    New Member
    • Jul 2009
    • 32

    How can I set WebClient, UploadValues not to wait for the server

    Hi All,

    I'm using WebClient.Uploa dValues function to post the information to my site.

    Code:
    byte[] response = 
                    myWebClient.UploadValues(_URL, "POST", PostInfo);
    The problem start as this function is waiting for the server reply and download a full headers.

    I tried to use is without assigning it to byte array, but without any performance improvement.

    Code:
    myWebClient.UploadValues(_URL, "POST", PostInfo);
    Any ideas ?

    Thanks For the help.
Working...