473,467 Members | 1,590 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

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

32 New Member
Hi All,

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

Expand|Select|Wrap|Line Numbers
  1. byte[] response = 
  2.                 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.

Expand|Select|Wrap|Line Numbers
  1. myWebClient.UploadValues(_URL, "POST", PostInfo);
Any ideas ?

Thanks For the help.
Sep 21 '10 #1
0 929

Sign in to post your reply or Sign up for a free account.

Similar topics

0
by: ryanbaldwin | last post by:
Hi, I'm writing a simple application that attempts to post some values to a Uri. In this application (for whatever reason) I want to throw an exception if the response code is anything other...
0
by: ryanbaldwin | last post by:
Hi, I'm writing a simple little application that posts to a Uri using the System.Net.WebClient class. In my application I wish to throw an Exception if anything other than a 200 OK is returned. ...
0
by: Julia | last post by:
Hi, I am trying to POST values from WINFORM application to ASP(not ASP.NET) page,which save them in ACCESS data base(support unicode) The values contains Hebrew and English characters no...
2
by: Ken | last post by:
We are using the UploadValues function to post a xml string to a java web service. This has been working well for us be we are running into an issue with using Western European characters. The...
1
by: Ken | last post by:
As a follow up to my previous question. We are using the WebClient UploadValues function to send an xml string containging Western European characters to a web service. The service is saying that...
0
by: galan1971 | last post by:
Hello, I'm trying to post to a page on a remote server and retrieve the result page and all is working fine except for one thing, the images which are dynamically created on the remote server...
0
by: parez | last post by:
Hi all! The webclient class's uploadvalues method appends %0d%0a to the last value in the name value collection.. Can any one help me out.. Thanks in advance.. Here is code...
0
by: Greg | last post by:
There appears to be an issue with one of the values I send to a remote server in a name value collection. if it is over 600, I get the expected result, if under I get an error returned from the...
1
by: jaffar.kazi | last post by:
Hi All, I have a .NET Winforms application that regularly posts to a PHP page. Till a few days back this worked perfectly. However, now, on certain machines, after the data is sent to the server,...
0
by: Juliano.net | last post by:
I have a program that uses WebClient.UploadValues method to send login information to a web site. It works fine on Windows XP, but on Windows Vista the users seems to be sent wrong, because the...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
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,...
0
Oralloy
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,...
1
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...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
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...
0
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...
0
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.