• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Direct Action help?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Direct Action help?


  • Subject: Re: Direct Action help?
  • From: John Huss <email@hidden>
  • Date: Fri, 21 Dec 2012 16:02:15 -0600

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 <email@hidden> 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 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 do not control) will return an HTTP Response with the proper status etc.


redirectL = new WORedirect(context());
redirectL.setUrl(validateURLS()); // the validateURLS contains a DA with a set of params
   
responseL = redirectL.generateResponse(); // How to get the HTTP response from above DA?

// DEBUG
responseL.contentString(); ==> Return NULL / Empty string

The above response  is returned as empty, and I get an error "Your request generates an error" ,so how do you grab an HTTP response back from a DA?

Thanks for any hints,

mai

 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden


 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

  • Follow-Ups:
    • Re: Direct Action help?
      • From: Mai Nguyen <email@hidden>
References: 
 >Direct Action help? (From: Mai Nguyen <email@hidden>)

  • Prev by Date: Direct Action help?
  • Next by Date: Re: Direct Action help?
  • Previous by thread: Direct Action help?
  • Next by thread: Re: Direct Action help?
  • Index(es):
    • Date
    • Thread