0

Possible Duplicate:
Sending HTTP POST Request In Java
Http POST in BlackBerry

I am trying to make a HTTP connection where i have to post some data to server the data that i have to send is a xml of the form as below

<userdata>
  <emailId>
  <![CDATA[[email protected]]]>
  </emailId>
  <dateTimezones>
    <dateInfo>
      <date>MAY 30,2012</date>
      <timezone>Asia/Kolkatta</timezone>
    </dateInfo>
    <dateInfo>
      <date>MAY 31,2012</date>
      <timezone>GMT</timezone>
    </dateInfo>
  </dateTimezones>
</userdata>

I am not aware of to send this data to server in java,i have never made a HTTP connection,i have searched but i did not got/understood to send this to server and receive the same data from server back in response.

Please explain this with an example.Here the client is blackberry device.The app has to send the data

2
  • The following may also help: stackoverflow.com/a/6667391/383861 Commented May 29, 2012 at 15:23
  • 1
    but this is for blackberry client Commented May 29, 2012 at 15:27

1 Answer 1

0

If it is the client-methods you are looking for, try searching for HttpClient on Google.

Sign up to request clarification or add additional context in comments.

2 Comments

HttpClient does not work for Java-ME, which is the basis of BlackBerry's OS.
I had no idea. Anyway, I suppose the OP now has something to Google for. One good example I found: thewiki4opentech.org/index.php/J2ME_:_A_complete_HTTP_Client

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.