httputils2 and org.apache.http.client.clientprotocolexception

jiangws

Member
Licensed User
Longtime User
HI, I'm new for Basic4Android, please help me to solve this problem.

There is a webserver(for example: http://192.168.0.8),
I can access using brower(Chrome, IE etc), and get response(only data for example {0,1,3}

Now I use Httputils2,
'Send a GET request
job3.Initialize("Job3", Me)
job3.Download("http://192.168.0.8/")

but there is a error of "org.apache.http.client.clientprotocolexception"

I hope to ignore this error, but I can not get the result, Could you help me?

I check this forum, and find httpurlconnect is not supported, Could I need to create a library? or is there another idea?

Thank for your help.
 

jiangws

Member
Licensed User
Longtime User
This error is usually related to the authorization step. Which server are you trying to access?

Hi Erel, Thank for your reply.

You are right, My web server is special one, but I can get the response from browser.

Do you have library about HttpURLConnect or other method?

Thank you again.
 
Upvote 0

jiangws

Member
Licensed User
Longtime User
HI Erel, thank for your reply.

I try it now, but the result is same.

req.InitializeGet(baseIP)
httpC.Execute(req, 1)

Error connecting: org.apache.http.client.ClientProtocolException -1

Is there another method?

Thank you again.
 
Upvote 0
Top