exception - ClientProtocolException Android -


so trying browse localhost webpage android device. when put following url in android browser works:

http://192.168.x.x/timecode 

but when try access via httpget, this

httpclient client = new defaulthttpclient(); uri website = new uri("http://192.168.x.x:8000/timecode"); httpget request = new httpget(); request.seturi(website); httpresponse response =client.execute(request); 

raises exception

org.apache.http.client.clientprotocolexception 

and when looked @ stacktrace saw interesting think might have exception

org.apache.http.parseexception: unable parse status code status line http/1.1 

what intend content of page i'm trying access , simple this:

{ "currenttime": "00:00:02"   "videoid": "video2" } 

i have no idea wrong. know not because of url because works n every browser im guessing has httpclient have no idea what.

can please me on 1 ?

thanks


Comments

Popular posts from this blog

linux - xterm copying to CLIPBOARD using copy-selection causes automatic updating of CLIPBOARD upon mouse selection -

c++ - qgraphicsview horizontal scrolling always has a vertical delta -