Justine:
"I'm able to use HttpClient just fine (in fact, just posted some
sample
code for doing multipart posts). "

Hi Justine,
I have tried to migrate to new http client, in previous release I was
using classes:
import org.apache.commons.httpclient.HttpClient;
import org.apache.commons.httpclient.HttpStatus;
import org.apache.commons.httpclient.methods.ByteArrayRequestEntity;
import org.apache.commons.httpclient.methods.PostMethod;

Now I have moved to new http client, but I am getting en exception:
java.net.SocketException: unknown error
at
org.apache.harmony.luni.platform.OSNetworkSystem.createSocketImpl(Native
Method)
at
org.apache.harmony.luni.platform.OSNetworkSystem.createSocket(OSNetworkSystem.java:
79)
at
org.apache.harmony.luni.net.PlainSocketImpl2.create(PlainSocketImpl2.java:
59)
at java.net.Socket.checkClosedAndCreate(Socket.java:763)
at java.net.Socket.connect(Socket.java:910)
at
org.apache.http.conn.scheme.PlainSocketFactory.connectSocket(PlainSocketFactory.java:
117)
at
org.apache.http.impl.conn.DefaultClientConnectionOperator.openConnection(DefaultClientConnectionOperator.java:
129)
at
org.apache.http.impl.conn.AbstractPoolEntry.open(AbstractPoolEntry.java:
164)
at
org.apache.http.impl.conn.AbstractPooledConnAdapter.open(AbstractPooledConnAdapter.java:
119)
at
org.apache.http.impl.client.DefaultRequestDirector.execute(DefaultRequestDirector.java:
348)
at
org.apache.http.impl.client.AbstractHttpClient.execute(AbstractHttpClient.java:
555)
at
org.apache.http.impl.client.AbstractHttpClient.execute(AbstractHttpClient.java:
487)
at
org.apache.http.impl.client.AbstractHttpClient.execute(AbstractHttpClient.java:
465)

If you have working examples with new client, please let me know where
I can find them.

Regards,
Nick

On Aug 20, 3:40 am, dai <[EMAIL PROTECTED]> wrote:
> aahh, I'm so sorry.. What I said I could run was with RC5.
>
> Thank you, I'll post code later.
>
> > I'm confused -- you say for HTTPS, you get the exception, then later,
> > you say you use HTTPS and it works. Which is it? Or does the exception
> > come and go?
>
> On Aug 20, 9:35 am, Mark Murphy <[EMAIL PROTECTED]> wrote:
>
> > dai wrote:
> > > Yes, I can access web sites via build in web browser. I mainly use
> > > https:443.. then run into unknownhost exception.
> > > I aslo tried to access via http:80, same error happened.
>
> > > Speaking of https:443, I could reach the target host without problems.
>
> > I'm confused -- you say for HTTPS, you get the exception, then later,
> > you say you use HTTPS and it works. Which is it? Or does the exception
> > come and go?
>
> > > Are you be able to access web sites now from you own app with beta0.9
> > > - httpclient..?
>
> > I won't be updating that chapter in my book until this weekend, in all
> > likelihood. Too many code samples, too little time...
>
> > But, as Justin pointed out, others can use the new HttpClient just fine.
> > Can you post some code that demonstrates the problem?
>
> > --
> > Mark Murphy (a Commons Guy)http://commonsware.com
> > Warescription: All titles, revisions, & ebook formats, just $35/year

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
[EMAIL PROTECTED]
Announcing the new Android 0.9 SDK beta!
http://android-developers.blogspot.com/2008/08/announcing-beta-release-of-android-sdk.html
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to