Simple HTTP sample code

Problems with WiFi, SQLite ,Bluetooth, WiMax, Proxies, etc...

Simple HTTP sample code

Postby rajesh » Wed Aug 20, 2008 10:10 pm

Hi All,
I'm new to Android and have the 0.9 beta SDK version. It would be great to get a simple HTTP client that posts some data to the server in the localhost.

Any help is appreciated.
Thanks

Rajesh
rajesh
Once Poster
Once Poster
 
Posts: 1
Joined: Wed Aug 20, 2008 10:01 pm

Top

Postby cgreen » Thu Aug 21, 2008 9:41 am

the new sdk migrated from apache commons-httpclient to apache httpcomponents.
is anyone familiar with this newer apache project ?
some helpful resources could be found at http://wiki.apache.org/HttpComponents/FrontPage
User avatar
cgreen
Experienced Developer
Experienced Developer
 
Posts: 56
Joined: Wed Jul 16, 2008 10:16 am

Postby zenob » Fri Aug 22, 2008 2:08 pm

Hi.

You can find some examples here - http://hc.apache.org/httpcomponents-cli ... mples.html

If you want use mulipart posts , you have to link some additional librarires, since multipart entities are not supported in sdk. ( for more info look at http://groups.google.com/group/android- ... 6772?tvc=2 )
User avatar
zenob
Freshman
Freshman
 
Posts: 7
Joined: Tue Mar 18, 2008 6:59 pm

Multipart Post - File upload for V1.0

Postby gjs » Fri Sep 26, 2008 8:00 am

Hi,

Could you please update this for V1.0 & provide an example of uploading a file.

Regards
gjs
Once Poster
Once Poster
 
Posts: 1
Joined: Fri Sep 26, 2008 7:55 am
Location: australia

Top

Return to Networking & Database Problems

Who is online

Users browsing this forum: No registered users and 4 guests