1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

HOW webclient/httpwebrequest to send data to differnt urls?

Discussion in 'C, C++, C#' started by sandrine10, Jul 5, 2014.

  1. sandrine10

    sandrine10 Power Member

    Joined:
    Apr 14, 2010
    Messages:
    621
    Likes Received:
    63
    Location:
    CyberLand
    Hi Guys,

    tried all the day to get the right code with no succes,i want submit data to different urls(with same webform),using webclient or httpwebrequest!!

    The last error i got:
    { "error" : { "type" : "InvalidParameters", "message" : "Error sending contact. " }, "response" : "Error sending contact. Please try again later." }

    Anyone can help?

    Thanks
     
  2. rootjazz

    rootjazz Jr. VIP Jr. VIP

    Joined:
    Dec 21, 2012
    Messages:
    617
    Likes Received:
    313
    Occupation:
    Developer
    Location:
    UK
    Home Page:
    Check your headers, from what you have posted, no one is able to help
     
  3. Nitros

    Nitros Power Member

    Joined:
    Jan 30, 2009
    Messages:
    573
    Likes Received:
    295
    Are you trying to send POST or GET requests ?
     
  4. member8200

    member8200 Regular Member

    Joined:
    Aug 9, 2014
    Messages:
    469
    Likes Received:
    33
    maybe posting the codes, so someone might help you with the debugging.
    it's hard to tell even if you showed the errors. :)

    Cheers.
     
  5. rawr00

    rawr00 Newbie

    Joined:
    Feb 24, 2014
    Messages:
    7
    Likes Received:
    3
    Your answer is right there in the response you received. 'Invalid Parameters' typically means one of the following:

    - GET: Your headers/cookies are invalid
    - POST: Your headers/cookies or Post Body is invalid
     
  6. sandrine10

    sandrine10 Power Member

    Joined:
    Apr 14, 2010
    Messages:
    621
    Likes Received:
    63
    Location:
    CyberLand
    Thanks guys, problem solved you're right rawr00(Post Body was invalid).