tag:blogger.com,1999:blog-2486761724251097865.post9096750489126616857..comments2020-11-24T18:37:35.430-08:00Comments on ESXX - Friendly Server-side JavaScript: Using Apache's HttpClient on Google App EngineLeviticushttp://www.blogger.com/profile/11934600432163494321noreply@blogger.comBlogger40125tag:blogger.com,1999:blog-2486761724251097865.post-15444997709797237262020-11-24T18:37:35.430-08:002020-11-24T18:37:35.430-08:00Hey very nice blog!Hey very nice blog!best erectile dysfunction pillshttps://besterectiledysfunctionpills.com/noreply@blogger.comtag:blogger.com,1999:blog-2486761724251097865.post-31391407962623961212020-11-24T18:31:29.890-08:002020-11-24T18:31:29.890-08:00Hmm it seems like your website ate my first commen...Hmm it seems like your website ate my first comment (it was extremely long) so I guess I'll just sum it up what I submitted and say, I'm thoroughly enjoying your blog. I too am an aspiring blog writer but I'm still new to the whole thing. Do you have any tips for rookie blog writers? I'd really appreciate it.erectile dysfunction drughttps://besterectiledysfunctionpills.com/noreply@blogger.comtag:blogger.com,1999:blog-2486761724251097865.post-24345195838828215252014-11-18T01:08:50.145-08:002014-11-18T01:08:50.145-08:00I've updated the links to point to Github.I've updated the links to point to Github.<br />Anonymoushttps://www.blogger.com/profile/11423443186783209549noreply@blogger.comtag:blogger.com,1999:blog-2486761724251097865.post-42980947011639865092014-11-17T12:36:18.095-08:002014-11-17T12:36:18.095-08:00Hi Leviticus,
I just ran into your blog post abou...Hi Leviticus,<br /><br />I just ran into your blog post about getting Apache HttpClient 4 running on Google App Engine. Looks like great work! I would be really interested in having a look at the source code. Unfortunately, the Berlios SVN server does not exist anymore. Do you still have the code somewhere else?<br /><br />Thanks,<br /><br />RalphAnonymousnoreply@blogger.comtag:blogger.com,1999:blog-2486761724251097865.post-18841193770386967262013-05-05T13:11:52.465-07:002013-05-05T13:11:52.465-07:00Samir et al,
My donation jar is awfully empty.Samir et al,<br /><br />My donation jar is awfully empty.Leviticushttps://www.blogger.com/profile/11934600432163494321noreply@blogger.comtag:blogger.com,1999:blog-2486761724251097865.post-9054269316214151392013-04-25T07:15:18.843-07:002013-04-25T07:15:18.843-07:00Some of the Referenced object are deprecated can y...Some of the Referenced object are deprecated can you please update these classes with latest objectssamirhttps://www.blogger.com/profile/00810209591865094727noreply@blogger.comtag:blogger.com,1999:blog-2486761724251097865.post-33997860093055390502011-10-23T10:13:01.233-07:002011-10-23T10:13:01.233-07:00Great stuff. Do you want to mavenize this project ...Great stuff. Do you want to mavenize this project and perhaps even upload it to a repository? hint, hint :)<br /><br />I've attached a pom.xml for your convenience:<br /><br /><br /> 4.0.0<br /> org.esxx.js.protocol<br /> gae-connection-manager<br /> 1.0.0<br /> GAEConnectionManager<br /> The GAEConnectionManager as given in http://esxx.blogspot.com/2009/06/manishhttps://www.blogger.com/profile/07635033401213156820noreply@blogger.comtag:blogger.com,1999:blog-2486761724251097865.post-91301994526427500872011-09-05T11:31:12.291-07:002011-09-05T11:31:12.291-07:00Thanks, man, that made Ektorp work under GAEThanks, man, that made Ektorp work under GAEM. Maksinhttps://www.blogger.com/profile/09988670221262476325noreply@blogger.comtag:blogger.com,1999:blog-2486761724251097865.post-7219784231102837512011-02-21T22:34:48.008-08:002011-02-21T22:34:48.008-08:00Guy, I'll have a look this week.Guy, I'll have a look this week.Leviticushttps://www.blogger.com/profile/11934600432163494321noreply@blogger.comtag:blogger.com,1999:blog-2486761724251097865.post-24309828030257257272011-02-17T00:29:22.833-08:002011-02-17T00:29:22.833-08:00To add to the above comment, the way I'm using...To add to the above comment, the way I'm using to initial the HttpClient is by:<br /><br />HttpParams httpParams = new BasicHttpParams();<br />ClientConnectionManager connectionManager = new GAEConnectionManager();<br />DefaultHttpClient itsHttpClient = new DefaultHttpClient(connectionManager, httpParams);Anonymoushttps://www.blogger.com/profile/18169028075185658665noreply@blogger.comtag:blogger.com,1999:blog-2486761724251097865.post-85482555070798793072011-02-17T00:23:59.556-08:002011-02-17T00:23:59.556-08:00Thanks for the code.
I'm trying to use it wit...Thanks for the code.<br /><br />I'm trying to use it with HttpClient4.1 and seems to work only with HttpGet requests.<br /><br />When I'm trying to use HttpPost:<br /><br />HttpPost httpPost = new HttpPost(new URI("https://registration.xxx.com/login.fcc"));<br /><br />List nvps = new ArrayList ();<br /> nvps.add(new BasicNameValuePair("USER", user));<br />Anonymoushttps://www.blogger.com/profile/18169028075185658665noreply@blogger.comtag:blogger.com,1999:blog-2486761724251097865.post-12545883291267341622010-11-08T00:35:08.850-08:002010-11-08T00:35:08.850-08:00Awesome!Awesome!Anonymousnoreply@blogger.comtag:blogger.com,1999:blog-2486761724251097865.post-15544053883449975522010-10-13T19:27:36.628-07:002010-10-13T19:27:36.628-07:00i have the same problem;
i use httpclient4 in gae....i have the same problem;<br />i use httpclient4 in gae.<br />code:<br />httpclient = new DefaultHttpClient(new GAEConnectionManager(),params);<br />HttpGet hp = new HttpGet("https://XXXXXXXXXXX");<br />hc.execute(hp); <br />but there is a Exception occurred<br />"The API package 'urlfetch' or call 'Fetch()' was not found."<br />but i use<br /> httpclient = new Anonymousnoreply@blogger.comtag:blogger.com,1999:blog-2486761724251097865.post-19627063934880246122010-10-12T21:12:03.124-07:002010-10-12T21:12:03.124-07:00thanks for this code~
it is very usefully.
now i h...thanks for this code~<br />it is very usefully.<br />now i have a small question .<br />use this tow java file with httpclient4 can fetch htts://?<br />thanksAnonymousnoreply@blogger.comtag:blogger.com,1999:blog-2486761724251097865.post-76346482572441057272010-08-08T05:33:04.463-07:002010-08-08T05:33:04.463-07:00hebnern: Fair enough, as long as the bug fixes kee...hebnern: Fair enough, as long as the bug fixes keep coming in. Some flattr would be nice too ... :-)<br /><br />I've changed the license of the two files in question to LGPLv3. Should be compatible with most other licenses out there.Leviticushttps://www.blogger.com/profile/11934600432163494321noreply@blogger.comtag:blogger.com,1999:blog-2486761724251097865.post-43051564723735136462010-08-08T05:05:09.105-07:002010-08-08T05:05:09.105-07:00Thanks for pointing this out, Nello. Fix checked i...Thanks for pointing this out, Nello. Fix checked in.<br /><br />Sigh, that URI line has caused way to much trouble ... Hope that was the last one!<br /><br />About the broken syntax highligting: Seems to be a WebSVN issue at Berlios. Switched links to ViewVC for now.Leviticushttps://www.blogger.com/profile/11934600432163494321noreply@blogger.comtag:blogger.com,1999:blog-2486761724251097865.post-81472588988752812392010-08-06T14:06:11.294-07:002010-08-06T14:06:11.294-07:00I also ran into the same issue as Nello, and made ...I also ran into the same issue as Nello, and made the same fix.<br /><br />Also, I was wondering about the licensing for these files. Since they are GPL, inclusion in a non-GPL application would require that the sources for the entire application be made available. Would you be willing to release these files under a more permissive license like for instance the Apache License so that people can Unknownhttps://www.blogger.com/profile/10268420310809365515noreply@blogger.comtag:blogger.com,1999:blog-2486761724251097865.post-65009353976336981132010-07-27T05:49:54.268-07:002010-07-27T05:49:54.268-07:00Hi,
Firstly, thanks for this code. You have help...Hi,<br /><br />Firstly, thanks for this code. You have helped me immensely!<br /><br />Secondly, you have an error in GAEClientConnection.sendRequestHeader where you set up the URI. Your current implementation does not provide a ":" before the port number if one is used. <br /><br />I fixed it like this:<br /><br />URI uri = new URI(host.getSchemeName() + "://" + Anonymousnoreply@blogger.comtag:blogger.com,1999:blog-2486761724251097865.post-28655838261153214982010-02-14T05:45:26.226-08:002010-02-14T05:45:26.226-08:00lonikar, I didn't know it was allowed to call ...lonikar, I didn't know it was allowed to call <i>sendRequestEntity</i> with a null entity, but indeed it is and <i>AbstractHttpClientConnection</i> does check for this condition.<br /><br />Thanks for the fix (which I have now committed)!Unknownhttps://www.blogger.com/profile/05279448024060773304noreply@blogger.comtag:blogger.com,1999:blog-2486761724251097865.post-40667185852269521512010-02-14T04:54:34.473-08:002010-02-14T04:54:34.473-08:00Never mind. I added the following code:
if(reques...Never mind. I added the following code:<br /><br />if(request.getEntity() != null)<br />request.getEntity().writeTo(baos);<br /><br />This makes it work. I was not sure initially that this change would make POST work.<br /><br />Thanks a lot for your initial solution.lonikarhttps://www.blogger.com/profile/03620110945033020336noreply@blogger.comtag:blogger.com,1999:blog-2486761724251097865.post-91215486013301561612010-02-14T04:14:33.139-08:002010-02-14T04:14:33.139-08:00Your classes work for HttpGet but not for HttpPost...Your classes work for HttpGet but not for HttpPost. I get a NullPointerException in GAEClientConnection.sendRequestEntity: request.getEntity().writeTo(baos);<br /><br />Is there any way to make this work for POST?lonikarhttps://www.blogger.com/profile/03620110945033020336noreply@blogger.comtag:blogger.com,1999:blog-2486761724251097865.post-25640861390675987882009-12-11T08:04:56.852-08:002009-12-11T08:04:56.852-08:00Silly me. Thanks a lot for finding this, Thibaut! ...Silly me. Thanks a lot for finding this, Thibaut! <br /><br />I have now pushed a fix to svn.Leviticushttps://www.blogger.com/profile/11934600432163494321noreply@blogger.comtag:blogger.com,1999:blog-2486761724251097865.post-43458232659351801802009-12-11T07:40:43.768-08:002009-12-11T07:40:43.768-08:00actually it's even worse/simpler.
The way it&...actually it's even worse/simpler.<br /><br />The way it's currently done results in escaping twice (once in httpclient, once in GAEClientConnection through the construction of the URL from URI fragments).<br /><br />Considering the inputs here are ALREADY escaped by HttpClient, there's no need to escape again and the following seems to be solving my issue<br /><br />URI uri = new URI(Unknownhttps://www.blogger.com/profile/03522715278363439627noreply@blogger.comtag:blogger.com,1999:blog-2486761724251097865.post-84089081027189641302009-12-11T07:14:42.856-08:002009-12-11T07:14:42.856-08:00It's very useful !
Although, there seem to be...It's very useful !<br /><br />Although, there seem to be a bug preventing to use it for URIs that include a queryString.<br /><br />In GAEClientConnection#sendRequestHeader<br />URI uri = new URI(host.getSchemeName(), null, host.getHostName(), host.getPort(),<br /> request.getRequestLine().getUri(), null, null);<br /><br /><br />should split the queryString from Unknownhttps://www.blogger.com/profile/03522715278363439627noreply@blogger.comtag:blogger.com,1999:blog-2486761724251097865.post-15577830234903434982009-12-11T07:04:45.210-08:002009-12-11T07:04:45.210-08:00This comment has been removed by the author.Unknownhttps://www.blogger.com/profile/03522715278363439627noreply@blogger.com