[jetty-users] jetty9 httpclient example

classic Classic list List threaded Threaded
4 messages Options
Reply | Threaded
Open this post in threaded view
|

[jetty-users] jetty9 httpclient example

makc
Hi,

Poor me have been unable to get a simple GET request working.

Tried this http://hastebin.com/sifinomibe.avrasm the result said

2: HttpResponse[null 0 null]
2013-08-09 16:41:49.638:WARN:oejut.QueuedThreadPool:HttpClient@1368884364-11: HttpClient@1368884364{STOPPING,8<=1<=200,i=0,q=1} rejected org.eclipse.jetty.client.HttpDestination$1$1@ef01e56

What am I missing? Thanks.

_______________________________________________
jetty-users mailing list
[hidden email]
https://dev.eclipse.org/mailman/listinfo/jetty-users
Reply | Threaded
Open this post in threaded view
|

Re: [jetty-users] jetty9 httpclient example

Simone Bordet-2
Hi,

On Fri, Aug 9, 2013 at 4:50 PM, Makc <[hidden email]> wrote:

> Hi,
>
> Poor me have been unable to get a simple GET request working.
>
> Tried this http://hastebin.com/sifinomibe.avrasm the result said
>
> 2: HttpResponse[null 0 null]
> 2013-08-09
> 16:41:49.638:WARN:oejut.QueuedThreadPool:HttpClient@1368884364-11:
> HttpClient@1368884364{STOPPING,8<=1<=200,i=0,q=1} rejected
> org.eclipse.jetty.client.HttpDestination$1$1@ef01e56
>
> What am I missing? Thanks.

Ahh, welcome to the async world !

Request.send() is async and returns immediately, and after that you
call HttpClient.stop().

Poor HttpClient, it could not finish what it started :)

Have a read at http://www.eclipse.org/jetty/documentation/current/http-client-api.html

--
Simone Bordet
----
http://cometd.org
http://webtide.com
http://intalio.com
Developer advice, training, services and support
from the Jetty & CometD experts.
Intalio, the modern way to build business applications.
_______________________________________________
jetty-users mailing list
[hidden email]
https://dev.eclipse.org/mailman/listinfo/jetty-users
Reply | Threaded
Open this post in threaded view
|

Re: [jetty-users] jetty9 httpclient example

makc
thanks, google would not give me that link for some reason :( I've got http://wiki.eclipse.org/Jetty/Tutorial/HttpClient which seems to be outdated.

_______________________________________________
jetty-users mailing list
[hidden email]
https://dev.eclipse.org/mailman/listinfo/jetty-users
Reply | Threaded
Open this post in threaded view
|

Re: [jetty-users] jetty9 httpclient example

Jesse McConnell
added the missing Jetty Redirect template to that page which now points to the correct location

thanks for finding that :)

--
jesse mcconnell
[hidden email]


On Fri, Aug 9, 2013 at 10:23 AM, Makc <[hidden email]> wrote:
thanks, google would not give me that link for some reason :( I've got http://wiki.eclipse.org/Jetty/Tutorial/HttpClient which seems to be outdated.

_______________________________________________
jetty-users mailing list
[hidden email]
https://dev.eclipse.org/mailman/listinfo/jetty-users



_______________________________________________
jetty-users mailing list
[hidden email]
https://dev.eclipse.org/mailman/listinfo/jetty-users