Hi,
Thank you so much for all your work in porting
org.apache.httpcomponents:httpclient to Android. I appreciate the
benefits you are making available. I am in the process of up versioning
some old Android code that used httpclient and I am swapping for you
Android port. I have run into a little difficulty and I wonder if you
would be so kind as to help me understand where I am going wrong.
I am using the following dependancies:
implementation 'org.apache.httpcomponents:httpclient-android:4.3.5.1'
implementation 'org.apache.httpcomponents.core5:httpcore5:5.0-beta7'
However, there are still 7 Classes which I used in my old code which I
cannot now find in either httpclient-android nor httpcore5, either same
named or renamed. I would be very grateful if you could point me in the
right direction
import org.apache.http.client.ClientProtocolException; // cannot find in
httpclient-android but is in original client 4.0
import org.apache.http.client.HttpClient; // cannot find in
httpclient-android but is in original client 4.0
import org.apache.http.client.protocol.ClientContext; // cannot find in
httpclient-android but is in original client 4.0
import org.apache.http.cookie.Cookie; // cannot find in
httpclient-android but is in original client 4.5
import org.apache.http.client.CookieStore; // cannot find in
httpclient-android but is in original client 4.0
import org.apache.http.impl.client.DefaultHttpClient; // cannot find in
httpclient-android but is in original client 4.5
import org.apache.http.protocol.HTTP; // cannot find
Many thanks indeed.
On 21/03/2019 16:40, Oleg Kalnichevski wrote:
On Thu, 2019-03-21 at 16:03 +0000, Andrew Hardy wrote:
From my original post:
"...HttpClient for Android uses org.apache.http.namevaluepair defined
in
HttpCore for some methods of its class URLEncodedUtilsHC4..."
I cannot find namevaluepair in HttpClient for Android.
So I asked:
"...How, therefore, do I use methods of URLEncodedUtilsHC4 in Android
or
are there any alternatives? In particular the equivalent use parse
methods..."
org.apache.http.NameValuePair is included in the Android Platform
(until API 28)
From what you are saying I can use HttpClient 5.0 Beta and HttpCore
5.0
Beta in Android fine, but not though Maven, right?
What stops you from using Maven with HttpCore 5.0?
Or maybe there's an Android library that does exactly what these
classes do.
That's probably the wrong list to ask about.
Oleg
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscr...@hc.apache.org
For additional commands, e-mail: dev-h...@hc.apache.org
---
This email has been checked for viruses by AVG.
https://www.avg.com
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscr...@hc.apache.org
For additional commands, e-mail: dev-h...@hc.apache.org