Trevor, You will need to replace <@HTTPSTATUSCODE> and <@HTTPREASONPHRASE> with the correct http status code and reason phrase. This will most likely be a code in the 30x range depending on how you do the redirection.
Witango Support On 18/7/03 9:09 PM, "Trevor Green" <[EMAIL PROTECTED]> wrote: > Hi > > I am still battling to get the redirect to work. I am using a TCF to do the > redirect (as it was done in an earlier example program from T2K). I pass the > URL as a parameter to the method and in the method I do > > <@ASSIGN request$httpHeader "HTTP/1.1 <@HTTPSTATUSCODE> > <@HTTPREASONPHRASE><@crlf>Date: <@CURRENTTIMESTAMP > FORMAT='datetime:http'><@crlf>Server: Witango 5.0.1.061<@crlf>MIME-Version: > 1.0<@crlf>Content-Type: text/html<@crlf>Location: <@VAR method$URL > ENCODING=METAHTML><@CRLF><@SETCOOKIES><@USERREFERENCECOOKIE><@crlf><@crlf>"> > > This does not cause any problems or produce any errors but it also does not do > the redirect to the specified URL. > > Any suggestions? > > Regards > Trevor > > -----Original Message----- > From: Witango Customer Support [mailto:[EMAIL PROTECTED] > Sent: 11 July 2003 04:40 PM > To: [EMAIL PROTECTED] > Subject: Re: Witango-Talk: help getting T2K programs running in newWitango v5 > AS > > This is a fairly generic header that should work with any browser. Keep > this all on one line. > > <@ASSIGN request$httpHeader "HTTP/1.1 <@HTTPSTATUSCODE> > <@HTTPREASONPHRASE><@crlf>Date: <@CURRENTTIMESTAMP > FORMAT='datetime:http'><@crlf>Server: Witango 5.0.1.061<@crlf>MIME-Version: > 1.0<@crlf>Content-Type: text/html<@crlf><@crlf>"> > > > Witango Support > > > > > On 12/7/03 12:01 AM, "Trevor Green" <[EMAIL PROTECTED]> wrote: > >> Hi Simon >> >> You are 100% correct. This is because I am setting >> >> local$httpheader= Location: <@VAR method$URL >> ENCODING=METAHTML><@CRLF><@SETCOOKIES><@USERREFERENCECOOKIE><@CRLF><@CRLF> >> >> to do a redirect. Can you steer me in the correct direction to get my >> redirects to work under v.5? >> >> Many thanks >> Trevor >> >> -----Original Message----- >> From: Simon Boddy [mailto:[EMAIL PROTECTED] >> Sent: 11 July 2003 11:22 AM >> To: [EMAIL PROTECTED] >> Subject: RE: Witango-Talk: help getting T2K programs running in new Witango >> v5 >> AS >> >> Hi Trevor, >> This is guaranteed to be a partial HTTP header. V5 does not complete HTTP >> headers like V4 used to. This is in the docs. Your page is assigning >> local$httpheader somewhere. You need to find it and make sure a full valid >> header is being used. >> >> Regards Simon >> >> -----Original Message----- >> From: Trevor Green [mailto:[EMAIL PROTECTED] >> Sent: 10 July 2003 11:13 >> To: [EMAIL PROTECTED] >> Subject: RE: Witango-Talk: help getting T2K programs running in new >> Witango v5 AS >> >> >> Hi Scott >> >> When I do that it gives me >> >> Client Error >> The response received from the application server is invalid. >> >> Any ideas? >> >> Regards >> Trevor >> >> -----Original Message----- >> From: Scott Cadillac [mailto:[EMAIL PROTECTED] >> Sent: 09 July 2003 06:01 PM >> To: [EMAIL PROTECTED] >> Subject: RE: Witango-Talk: help getting T2K programs running in new Witango >> v5 >> AS >> >> Hi Trevor and Giorgio, >> >> With Witango v5, when errors occur, Witango is now properly assigning the >> HTTP header status code (typically 500). >> >> This causes MS Internet Explorer and other browsers to display a "generic" >> error page. >> >> Try turning off or on the "Show friendly HTTP error messages" in MSIE. >> >> From the MSIE main pull-down, click "Tools", then "Internet Options...", >> then click on the "Advanced" tab, and toggle the check-mark for "Show >> friendly HTTP error messages" - click "OK" to save your changes. >> >> This should allow you to see more information about the problem. >> >> Hope this helps. Cheers.... >> >> Scott Cadillac, >> Witango.org - http://witango.org >> 403-281-6090 - [EMAIL PROTECTED] >> -- >> Information for the Witango Developer Community >> --------------------- >> >> XML-Extranet - http://xml-extra.net >> 403-281-6090 - [EMAIL PROTECTED] >> -- >> Well-formed Development (for hire) >> --------------------- >> >> -----Original Message----- >> From: Ferr� A&T - Giorgio Tassistro [mailto:[EMAIL PROTECTED] >> Sent: Wednesday, July 09, 2003 9:41 AM >> To: [EMAIL PROTECTED]; [EMAIL PROTECTED] >> Subject: Fw: Witango-Talk: help getting T2K programs running in new Witango >> v5 AS >> >> >> Trevor, >> >> I discover that If you put before the action a empty "results page" with >> push, the TAF go ! >> Check this out! >> >> Giorgio >> >> ----- Original Message ----- >> From: Ferr� A&T - Giorgio Tassistro >> To: [EMAIL PROTECTED] >> Sent: Wednesday, July 09, 2003 5:02 PM >> Subject: Re: Witango-Talk: help getting T2K programs running in new Witango >> v5 AS >> >> >> Trevor, >> >> I have just now, send the same problem to Witango. >> The problem (I think) is that Witango 5 does't know corretly the ODBC error >> ( only on Pervasive.SQL ?) . >> If you use "Error HTML page", it does't go, sure. >> I wait some solutions. >> >> Regards >> >> Giorgio Tassistro >> ----- Original Message ----- >> From: Trevor Green >> To: Multiple recipients of list witango-talk >> Sent: Wednesday, July 09, 2003 4:53 PM >> Subject: Witango-Talk: help getting T2K programs running in new Witango v5 >> AS >> >> >> Platform is Win2K Server, Witango v5.0 (latest production build). >> >> Programs have not been opened by T2K Development studio and/or converted >> (i.e. are straight from T2K server). Programs execute correctly the first >> time they are run. However, when I open a .taf containing a form that when >> submitted calls the .taf with different arguments I get an HTTP 500 Internal >> server error. >> >> Can anyone steer me in the right direction to try and troubleshoot? >> >> Many thanks >> >> Trevor Green >> >> ________________________________________________________________________ >> TO UNSUBSCRIBE: Go to http://www.witango.com/maillist.taf >> >> ________________________________________________________________________ >> TO UNSUBSCRIBE: Go to http://www.witango.com/maillist.taf >> >> ________________________________________________________________________ >> TO UNSUBSCRIBE: Go to http://www.witango.com/maillist.taf >> ________________________________________________________________________ >> TO UNSUBSCRIBE: Go to http://www.witango.com/maillist.taf >> >> >> ******************************************************************** >> This message is intended only for the use of the person(s) ("the intended >> recipient(s)") to whom it is addressed. It may contain information which is >> privileged and confidential within the meaning of applicable law. If you >> are not the intended recipient, please contact the sender as soon as >> possible. The views expressed in this communication may not necessarily >> be the views held by LGCSB (Local Government Computer Services Board). >> >> Any attachments have been checked by a virus scanner and appear to be >> clean. >> Please ensure that you also scan all messages, as LGCSB does not accept >> any liability for contamination or damage to your systems. >> ******************************************************************** >> >> >> ________________________________________________________________________ >> TO UNSUBSCRIBE: Go to http://www.witango.com/maillist.taf >> ________________________________________________________________________ >> TO UNSUBSCRIBE: Go to http://www.witango.com/maillist.taf > > ________________________________________________________________________ > TO UNSUBSCRIBE: Go to http://www.witango.com/maillist.taf > ________________________________________________________________________ > TO UNSUBSCRIBE: Go to http://www.witango.com/maillist.taf ________________________________________________________________________ TO UNSUBSCRIBE: Go to http://www.witango.com/maillist.taf
