473,396 Members | 1,852 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,396 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 4223
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: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
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
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
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
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
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,...

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.