succeed in across-domain posting from site a to site b usingwebclient,but one fail..

D

dotnet

when the data is posted to http://www.zhubajie.com/task/user/register,it
fails without any error msg
my code :
WebClient webClient = new WebClient();
webClient.Headers.Add("Content-Type", "application/x-www-form-
urlencoded");
byte[] postData = Encoding.ASCII.GetBytes
("username=ccccccgfcccccc&password=cccckjcccccds&repassword=cccckjcccccds&[email protected]&passregtext=1&uFrom=no&forward=&url=&welcome=");
byte[] responseData = webClient.UploadData("http://
www.zhubajie.com/task/user/regnex", "POST", postData);
string pageHtml = Encoding.UTF8.GetString(responseData);
Response.Write(pageHtml);
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,994
Messages
2,570,223
Members
46,812
Latest member
GracielaWa

Latest Threads

Top