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

Discussion in 'ASP .Net' started by dotnet, Aug 21, 2009.

  1. dotnet

    dotnet Guest

    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=&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);
    dotnet, Aug 21, 2009
    #1
    1. Advertising

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

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Wenjie

    if (f() != FAIL) or if (FAIL != f())?

    Wenjie, Jul 28, 2003, in forum: C Programming
    Replies:
    3
    Views:
    417
    E. Robert Tisdale
    Jul 31, 2003
  2. Replies:
    1
    Views:
    1,082
    bcoulson
    Aug 31, 2009
  3. Anonymousgoogledeja

    how can i Know whether atoi function call succeed?

    Anonymousgoogledeja, Aug 22, 2005, in forum: C Programming
    Replies:
    15
    Views:
    960
    Jack Klein
    Aug 23, 2005
  4. J Krugman

    Tests fail in cpan, succeed manually

    J Krugman, Apr 10, 2004, in forum: Perl Misc
    Replies:
    8
    Views:
    110
    James Willmore
    Apr 26, 2004
  5. fl
    Replies:
    2
    Views:
    225
    Bill Gill
    Jan 5, 2013
Loading...

Share This Page