Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > succeed in across-domain posting from site a to site b usingwebclient,but one fail..

Reply
Thread Tools

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

 
 
dotnet
Guest
Posts: n/a
 
      08-21-2009
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&r epassword=cccckjcccccds&email=cydhdfdsucku@cyh**** u.com&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);
 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
spring with ibatis jdbc throws exception on first attept succeed on second. Vladimir.Sakharuk@gmail.com Java 1 08-31-2009 05:22 PM
Kaspersky and eMule, I don't succeed to opens ports. Fogar Computer Information 0 01-28-2006 09:51 AM
Sending of Password did not Succeed Techpriest Firefox 5 10-27-2005 10:22 PM
I don't succeed to unistall a software. help! Adriano Computer Information 1 04-02-2004 02:38 AM
How to succeed on the Internet? Mel Computer Support 3 02-27-2004 08:30 PM



Advertisments
 



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57