Re: [Simpleweb-Support] DomainHandler with HTTP 1.0
Brought to you by:
niallg
From: Jeff N. <je...@ne...> - 2007-03-16 13:11:38
|
An update: In the Simple API docs for DomainHandler.handle(Request,Response) it states: "For compatibility with HTTP/1.0 clients that do not support the Host header this delegates the processing of requests without the Host header to a default ProtocolHandler." Depending on how this statement is interpreted, it is not entirely correct, as this method does not look for a 'Host' header unless HTTP/ 1.1 is being used. Well low and behold, the PayPal HTTP/1.0 request seems to include a 'Host' header. So a workaround (for me) seems possible by subclassing DomainHandler and overriding 'handle'. Jeff On Mar 16, 2007, at 1:17 PM, Jeff Nichols wrote: > Hello Niall (and all), > > After a tedious 2 day debugging session, I finally figured out why > PayPal's IPN (Instant Payment Notification) system was not working > with my server. > > I'm using the virtual hosting facilities of Simple (through the > DomainHandler) and PayPal is (for whatever reason) sending their > notifications with HTTP/1.0. This creates a problem, as the > DomainHandler only works with HTTP/1.1 requests (which should include > a 'Host' header). > > Is there any way around this? I thought of writing a specialized > DomainHandler that would fall back to parsing its own 'Host' if none > was available, but I cannot find anywhere in the Request where the > entire URL is available. > > Any help is greatly appreciated. > > Jeff > > ---------------------------------------------------------------------- > --- > Take Surveys. Earn Cash. Influence the Future of IT > Join SourceForge.net's Techsay panel and you'll get the chance to > share your > opinions on IT & business topics through brief surveys-and earn cash > http://www.techsay.com/default.php? > page=join.php&p=sourceforge&CID=DEVDEV > _______________________________________________ > Simpleweb-Support mailing list > Sim...@li... > https://lists.sourceforge.net/lists/listinfo/simpleweb-support > |