473,811 Members | 3,055 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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.Uploa dValues.
>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.Heade rs.Add("Content-Type", "applicatio n/x-www-form-
urlencoded");
webClient.Heade rs.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 4261
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.co m

<ja*********@gm ail.comwrote in message
news:11******** **************@ b40g2000prd.goo glegroups.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.Uploa dValues.
>>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.Heade rs.Add("Content-Type", "applicatio n/x-www-form-
urlencoded");
webClient.Heade rs.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
2055
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 and simple. But ebay webserver send me your password is not valid... But the password is clearly correct.. you can type it at the result page and submit. Then you can see a message - bidding has ended and you are logged in. <- This is the message...
0
1067
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 than 200 OK. Is this possible at all when using WebClient.UploadValues? Thanks in advance.
0
1425
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. Is it possible to retrieve this information when using WebClient.UploadValues? Thanks.
2
4289
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 values = new NameValueCollection();
1
2613
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 submit the same data to a webpage from a Windows Form.
0
1299
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", "bar"); System.Net.WebClient oo = new WebClient(); oo.UploadValues("http://localhost/chuckhere.aspx", form); and I get an exception on the UploadValues();
0
1655
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
243
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, 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.
0
1050
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 login data is not accepted. Do you know if there is any incompatibility between WebClient class and Windows Vista?
0
9605
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10393
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
10405
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
10136
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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
1
7671
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 presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
6893
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 then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
1
4342
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
3871
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
3020
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.