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. Advertisements

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. Chumley Walrus

    onClick works on one domain, but not another

    Chumley Walrus, Sep 7, 2005, in forum: ASP .Net
    Replies:
    0
    Views:
    349
    Chumley Walrus
    Sep 7, 2005
  2. Wenjie

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

    Wenjie, Jul 28, 2003, in forum: C Programming
    Replies:
    3
    Views:
    624
    E. Robert Tisdale
    Jul 31, 2003
  3. Replies:
    1
    Views:
    1,278
    bcoulson
    Aug 31, 2009
  4. Anonymousgoogledeja

    how can i Know whether atoi function call succeed?

    Anonymousgoogledeja, Aug 22, 2005, in forum: C Programming
    Replies:
    15
    Views:
    1,140
    Jack Klein
    Aug 23, 2005
  5. Andy B
    Replies:
    1
    Views:
    397
    Evan Camilleri
    Jul 29, 2008
  6. saify
    Replies:
    0
    Views:
    1,008
    saify
    Sep 28, 2009
  7. J Krugman

    Tests fail in cpan, succeed manually

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