0

In my android application i would like to send a json object with username and password as string to the server. Could you please let me know how i can achieve this using https connection.

Please share your valuable suggestions.

Thanks in advance :)

Remmyabhavan
  • 1,689
  • 5
  • 36
  • 65

1 Answers1

2

Have you tried a search?

Community
  • 1
  • 1
dave.c
  • 10,910
  • 5
  • 39
  • 62
  • I think @Remmyabhavan wants to know how to work with HTTPS and is a little different. All your links points to "regular" Http posts. – ferostar Feb 25 '11 at 15:07
  • @seretur I have successfully used the `HttpClient` for HTTPS connections & POSTs with few issues. The main stumbling block would be if the site certificate has not been signed by an authority that Android recognises. Also `UrlConnection` has a sub-class of `HttpsURLConnection` that I have also used with success. – dave.c Feb 25 '11 at 15:17
  • Yes, that's why i said it, you mention Android and self-signed SSL and i start walking on the roof pulling my hair off :). – ferostar Feb 25 '11 at 17:03