×

Discussion Board

Results 1 to 9 of 9
  1. #1
    Registered User
    Join Date
    Apr 2012
    Posts
    4

    HTTP Post method

    Hi, anyone have a better way to post data to server instead of using the PostClient api ??

    I tried to use PostClient but it posted null to server while other platforms work well in posting.

  2. #2
    Registered User
    Join Date
    Oct 2010
    Location
    Trivandrum ,Kerala
    Posts
    139

    Re: HTTP Post method

    Hi acoo9,
    You can use the UploadStringAsync method of WebClient to send data to a server from a Windowsphone 7 application.
    sreerajvr

  3. #3
    Registered User
    Join Date
    Apr 2012
    Posts
    4

    Re: HTTP Post method

    Quote Originally Posted by sreerajvr View Post
    Hi acoo9,
    You can use the UploadStringAsync method of WebClient to send data to a server from a Windowsphone 7 application.
    I tried, it sent null also.. It is weird as the post method for other platform is worked. I tried to post to PHP server is ok, but post to Java servlet failed.

  4. #4
    Nokia Developer Champion
    Join Date
    Mar 2012
    Location
    Surabaya, Indonesia
    Posts
    72

    Re: HTTP Post method

    Hi,

    Perhaps you can try another alternative from Codeplex, MyToolkit.
    Jeffrey Hermanto Halimsetiawan
    Game Developer | Mobile Apps Developer
    LinkedIn

  5. #5
    Registered User
    Join Date
    Apr 2012
    Posts
    4

    Re: HTTP Post method

    Quote Originally Posted by jeffrey.halimsetiawan View Post
    Hi,

    Perhaps you can try another alternative from Codeplex, MyToolkit.
    when i use it, it set the data as ("data", params), but server only receive "&", nothing else.

  6. #6
    Regular Contributor
    Join Date
    Aug 2003
    Posts
    128

    Re: HTTP Post method

    Why not use HttpWebClient?

  7. #7
    Registered User
    Join Date
    Apr 2012
    Posts
    4

    Re: HTTP Post method

    Quote Originally Posted by zhenLeow View Post
    Why not use HttpWebClient?
    I tried, posted null..

  8. #8
    Nokia Developer Moderator
    Join Date
    Feb 2011
    Location
    Portugal
    Posts
    919

    Re: HTTP Post method

    Quote Originally Posted by acool9 View Post
    I tried, posted null..
    I would recomend you to use Fiddler to see exacly whats being transmited and/or received. perhaps the problem is not on the origin but on destination.

    Check it here: http://www.fiddler2.com/fiddler2/

  9. #9
    Registered User
    Join Date
    Mar 2012
    Posts
    20

    Re: HTTP Post method

    Hi,
    You can try with HttpWebRequest /webclient api

Similar Threads

  1. Error in Http post method
    By ramtrg in forum Symbian C++
    Replies: 1
    Last Post: 2011-08-25, 13:56
  2. HTTP GET and POST METHOD
    By hornsattack in forum Symbian Networking & Messaging (Closed)
    Replies: 1
    Last Post: 2009-08-03, 11:26
  3. Can we use PUT method instead of Post in HTTP
    By ash_21 in forum Symbian Networking & Messaging (Closed)
    Replies: 3
    Last Post: 2009-07-21, 08:44
  4. http example post method problem
    By nabaparna in forum Symbian Networking & Messaging (Closed)
    Replies: 4
    Last Post: 2007-06-28, 08:58
  5. And HTTP POST method Works !!
    By n_sidhaye in forum Mobile Java Networking & Messaging & Security
    Replies: 0
    Last Post: 2003-11-08, 17:54

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •