Best Method to send data

7 replies
Hi Friends

I have one doubt about "Which is the best method to send data to the php ?"

Whether using httpClient or HttpURLConnection

Please gave some suggestion....

Thanks & Regards

Kiruthika.M
#data #method #send
  • Profile picture of the author SkIgnas
    Hello,
    What do you mean by saying "send data to the php"? Send from where?
    {{ DiscussionBoard.errors[8791870].message }}
  • Profile picture of the author wondy
    I'm not sure what you're asking. Are you trying to send data to a PHP form? In that case an HTML form will do. If you're trying to send data with a PHP script, I'd suggest taking a look at cURL.
    {{ DiscussionBoard.errors[8791993].message }}
  • Profile picture of the author chrisranjana.com
    Originally Posted by Katypeterson View Post

    ........................... httpClient or HttpURLConnection
    are you talking about android ? It depends on the version, since one method is more stabler than the other depending on the version.
    Signature

    Chris, Developer, Chrisranjana.com,
    AWS Developer GCP Engineer Python NodeJS Programmer

    {{ DiscussionBoard.errors[8792769].message }}
  • Profile picture of the author shahriyar
    Originally Posted by Katypeterson View Post

    Hi Friends

    I have one doubt about "Which is the best method to send data to the php ?"

    Whether using httpClient or HttpURLConnection

    Please gave some suggestion....

    Thanks & Regards

    Kiruthika.M
    Please tell us more about what you are trying to do. e.g. What app/site are you developing and from where are you sending data to which php script. etc.
    {{ DiscussionBoard.errors[8793585].message }}
  • Profile picture of the author aircompressor007
    how to send the data?data send in database or data send in server, which you wish to use technic...
    {{ DiscussionBoard.errors[8799990].message }}
  • Profile picture of the author reddys
    Apache HTTPClient has fewer bugs on Eclair and Froyo. It is the best choice for these releases.
    For Gingerbread and better, HttpURLConnection is the best choice. Its simple API and small size makes it great fit for Android. Transparent compression and response caching reduce network use, improve speed and save battery. New applications should use HttpURLConnection; it is where Google will be spending its energy going forward.
    Read this full details about functionality & efficiency
    http://android-developers.blogspot.i...p-clients.html
    Signature
    For those who are searching for Direct mobile CPI offers please contact me at skype: madi.webz
    {{ DiscussionBoard.errors[8800297].message }}

Trending Topics