472,145 Members | 1,571 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

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

C# WebClient works from server but not client

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 appear broken. Here
is the code:

WebClient webClient = new WebClient();
webClient.Headers.Add("Content-Type",
"application/x-www-form-urlencoded");
byte[] response = webClient.UploadData(URL, "POST",
Encoding.GetEncoding("ISO-8859-1").GetBytes(PARAMETERS));
Response.OutputStream.Write(response, 0, response.Length);

1. This script is in a default.aspx file on my IIS server
2. If I open the path to that page in my browser on my laptop then the
images are not created and appear broken
3. If I open the path to that page in my browser on my IIS SERVER than
everything works fine

I have tried adding the line
webClient.Credentials = new System.Net.NetworkCredential(USER,PASS);
but that is not doing anything

Anybody have a clue

Nov 25 '05 #1
0 1172

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

1 post views Thread by ian maclure | last post: by
3 posts views Thread by MBW | last post: by
2 posts views Thread by Prabhat | last post: by
1 post views Thread by vijayakumar | last post: by
3 posts views Thread by Hukkky | last post: by
reply views Thread by Saiars | last post: by
reply views Thread by leo001 | last post: by

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.