• 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: How to target a WO component in an html include
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: How to target a WO component in an html include


  • Subject: Re: How to target a WO component in an html include
  • From: Chuck Hill <email@hidden>
  • Date: Fri, 21 Mar 2008 10:59:53 -0700


On Mar 21, 2008, at 10:38 AM, Reid Bundonis wrote:

Once again, Chuck is the king. Thank you very much for sticking through this one with me.

This one was easy. :-)


On Mar 21, 2008, at 1:03 PM, Chuck Hill wrote:

See fix below.
...

At least this is easy to fix. Add this to your Application class:
public WORequest createRequest(String aMethod, String aURL, String anHTTPVersion, NSDictionary someHeaders, NSData aContent, NSDictionary someInfo) {
if( ! anHTTPVersion.startsWith("HTTP/")) {
anHTTPVersion = "HTTP/1.1";
}
return super.createRequest(Method, aURL, anHTTPVersion, someHeaders, aContent, someInfo);
}


Profit.

Kaching! I owe you a beer. Again.

I thought the major difference between 1.0 and 1.1 was that the host was sent in the requesting header.

It is not the difference between 1.0 and 1.1. The problem was that WORequest was not accepting INCLUDED as a valid version (which seems reasonable). This code just replaces an invalid vlaue with a valid one. Using HTTP/1.0 would probably have the same effect.


Amazing that this was the problem. Again, I thank you for your time and effort to help me resolve this. Now I feel obligated to at least try and move off of XCode. :) Well, maybe after the next project.


:-)


Chuck


--

Practical WebObjects - for developers who want to increase their overall knowledge of WebObjects or who are trying to solve specific problems.
http://www.global-village.net/products/practical_webobjects






_______________________________________________
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


References: 
 >How to target a WO component in an html include (From: Reid Bundonis <email@hidden>)
 >Re: How to target a WO component in an html include (From: Chuck Hill <email@hidden>)
 >Re: How to target a WO component in an html include (From: Reid Bundonis <email@hidden>)
 >Re: How to target a WO component in an html include (From: Chuck Hill <email@hidden>)
 >Re: How to target a WO component in an html include (From: Reid Bundonis <email@hidden>)
 >Re: How to target a WO component in an html include (From: Chuck Hill <email@hidden>)
 >Re: How to target a WO component in an html include (From: Reid Bundonis <email@hidden>)

  • Prev by Date: Re: Help with this db design
  • Next by Date: Re: Help with this db design
  • Previous by thread: Re: How to target a WO component in an html include
  • Next by thread: [ANN] WO/WOLips/Wonder intro screencast
  • Index(es):
    • Date
    • Thread