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

Forum statistics

Threads
473,744
Messages
2,569,480
Members
44,900
Latest member
Nell636132

Latest Threads

Top