Re: Direct Action help?

2012-12-21 Thread Mai Nguyen
There is a package in Project Wonder named er.extensions.net.http; author ishimoto based on the Apache commons. Not sure if anyone is using it? thanks. On Dec 21, 2012, at 4:59 PM, Ramsey Gurley wrote: > The comment from one of my commits to a HttpClient utils class: > > "Seriously, they defa

Re: Direct Action help?

2012-12-21 Thread Ramsey Gurley
The comment from one of my commits to a HttpClient utils class: "Seriously, they default to US-ASCII on requests and ISO-8859-1 on responses? WTH man? Response should have a charset anyway, but explicitly setting UTF-8 just in case." It's better than URLConnection, yes. Just don't assume the de

Re: Direct Action help?

2012-12-21 Thread Mai Nguyen
Actually HTTPClient from ApacheCommons looks much less daunting than java.net.HttpURLConnection, so I will give it a try. Thanks for the suggestions. > On Dec 21, 2012, at 2:22 PM, Chuck Hill wrote: > >> It does not sound like you want a direct action. I think you want something >> more like j

Re: Direct Action help?

2012-12-21 Thread Chuck Hill
It does not sound like you want a direct action. I think you want something more like java.net.HttpURLConnection or HTTPClient from the Apache commons. Chuck On 2012-12-21, at 2:11 PM, Mai Nguyen wrote: > Yes, if I can call performActionNamed: to get a WOActionResults and get the > response

Re: Direct Action help?

2012-12-21 Thread Mai Nguyen
Yes, if I can call performActionNamed: to get a WOActionResults and get the response. But the problem is that I need to call a validateURLS() which calls an external app to do validation. Maybe I have to use WODirectActionRequestHandler directlynot sure. thanks On Dec 21, 2012, at 2:02 PM

Re: Direct Action help?

2012-12-21 Thread John Huss
A redirect does not have a content body, just a status code and a Location header. On Fri, Dec 21, 2012 at 3:48 PM, Mai Nguyen wrote: > Hi List, > I have read David LeBer's very good blog about Direct Actions, but I am > still unclear how to get the http response returned by a DA? Or is it > pos

Direct Action help?

2012-12-21 Thread Mai Nguyen
Hi List, I have read David LeBer's very good blog about Direct Actions, but I am still unclear how to get the http response returned by a DA? Or is it possible? For example, I have the following code, as the redirect is needed to call a DA to do further validation. The DA inside the URL (that I