473,406 Members | 2,954 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,406 software developers and data experts.

Problem with webclient uploadvalues on SOME computers

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, the server reports
that no data is present. The code still works on my development
machine.
All the machines I'm using are Windows XP SP2 machines. Using .NET
Framework 1.1.

The mechanism I'm using is webclient.UploadValues.
>From a post I read, I enabled the PHP script to use UTF-8 (from
php.ini)

On the same line, I've added code to send the content headers as
below:

webClient.Headers.Add("Content-Type", "application/x-www-form-
urlencoded");
webClient.Headers.Add("CharSet", "UTF-8");

also, but to no avail.

What could be the problem? I would really appreciate a solution to
this problem as it is driving me nuts!

Thanks in advance,
Regards,
--Jaffar

May 21 '07 #1
1 4225
Jaffar,

Do you have any access to the machines that the program is running from?
Can you install a network traffic sniffer on the machine and see what your
program is doing?
--
- Nicholas Paldino [.NET/C# MVP]
- mv*@spam.guard.caspershouse.com

<ja*********@gmail.comwrote in message
news:11**********************@b40g2000prd.googlegr oups.com...
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, the server reports
that no data is present. The code still works on my development
machine.
All the machines I'm using are Windows XP SP2 machines. Using .NET
Framework 1.1.

The mechanism I'm using is webclient.UploadValues.
>>From a post I read, I enabled the PHP script to use UTF-8 (from
php.ini)

On the same line, I've added code to send the content headers as
below:

webClient.Headers.Add("Content-Type", "application/x-www-form-
urlencoded");
webClient.Headers.Add("CharSet", "UTF-8");

also, but to no avail.

What could be the problem? I would really appreciate a solution to
this problem as it is driving me nuts!

Thanks in advance,
Regards,
--Jaffar

May 21 '07 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: mc kim via .NET 247 | last post by:
What I am trying to is automatic bidding process in Ebay site... WebClient class can uploads form data easily. I have collected ebay url & form data to uploads.. Most of process is quite easy...
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. ...
2
by: Max Gattringer | last post by:
Hi, I've got a little problem with the WebClient, I always get a failure while debugging this code: private void menuItem2_Click(object sender, System.EventArgs e) { NameValueCollection...
1
by: Nurchi BECHED | last post by:
Hello, everyone. I am stuck with the following: There is a webpage which contains a webform, which contains text fields, and submits the data from current page to another one. I need to...
0
by: DrBytes | last post by:
Hi, .. I'm trying to post some values to an aspx but seem to be unable to get the formdata there . This is what I do: NameValueCollection form = new NameValueCollection(); form.Add("foo",...
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: 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: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
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
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
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,...
0
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
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
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

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.