• 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
WOResponse 200 OK
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

WOResponse 200 OK


  • Subject: WOResponse 200 OK
  • From: Pierre Gilquin <email@hidden>
  • Date: Fri, 19 Sep 2014 09:12:11 +0200

Hi WO people,


I try to send a 200 OK response with this code from WOPaypal framework


    private static class HTTPStatusResponse extends WOResponse {
public static void setResponse( WOResponse response, int statusInt, String statusString ) {
            String contentString = "HTTP/1.0 "+statusInt+" "+statusString;
            response.appendContentString( contentString );
response.setHeader( ""+contentString.length(), "content-length" );
            response.setHeader( "text/html", "content-type" );
            response.setStatus( statusInt );
        }
        public HTTPStatusResponse( int statusInt, String statusString ) {
            super();
HTTPStatusResponse.setResponse( this, statusInt, statusString );
        }
    }

    private static class OKResponse extends HTTPStatusResponse {
        public OKResponse() {
            super( 200, "OK" );
        }
    }

This code works for paypal but I try to use it with Google Wallet but it's not working.
The answer is
HTTP/1.1 200 Apple
instead of OK !

Can that be the problem and how can I change that ?


Thanks in advance


Pierre
_______________________________________________
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: WOResponse 200 OK
      • From: Dennis Bliefernicht <email@hidden>
  • Prev by Date: Re: Access to EOF/WebObjects source files - plan for the future?
  • Next by Date: Re: WOResponse 200 OK
  • Previous by thread: Re: Access to EOF/WebObjects source files - plan for the future?
  • Next by thread: Re: WOResponse 200 OK
  • Index(es):
    • Date
    • Thread