|
View:
New views
4 Messages
—
Rating Filter:
Alert me
|
|
|
-httpresponse not working for me ...I have tried various things web::response -httpresponse "HTTP/1.1 303 See Other" And web::response -httpresponse 303 among others ... The response header in ethereal is: -------------------------------------------------------------------------- HTTP/1.1 200 OK Date: Sat, 31 Mar 2007 05:38:28 GMT Server: Apache/2.2.3 (Fedora) Retry-After: 5 Location: http://?????????.com/index.ws3?XDxJ7kkLRVB75HbwNdRbDXgh1aPRGsbOrjov97PI3eRUjXf85roW3SGgmgqwhldVGg315GrPUcYXYI7jSSOa6VvJALfgFil Generator: websh 3.6.0b4 Content-Length: 84 Connection: close Content-Type: text/html; charset=UTF-8 -------------------------------------------------------------------------- What am doing wrong. The other web::response subcommands and options seem to work... Jason M |
|
|
Re: -httpresponse not working for me ...> web::response -httpresponse "HTTP/1.1 303 See Other"
This would be the correct syntax. Works for me in different setups. I have not tested it on 2.2.3 though. I'll try to do that in the next couple of days if I have some time. Two questions: - Did you compile the original 3.6.0b4 version or the latest from the repo? - Are you sure you set the -httpresponse before you write the first ouptut? (Probably yes since you say the other options work and they wouldn't if that was the problem.) Ronnie -- Meet us at Jazoon'07: 24 - 28 June - http://jazoon.com Ronnie Brunner | ronnie.brunner@... phone +41 (0)44 247 79 79 | fax +41 (0)44 247 70 75 Netcetera AG | 8040 Zürich | Switzerland | http://netcetera.ch --------------------------------------------------------------------- To unsubscribe, e-mail: websh-dev-unsubscribe@... For additional commands, e-mail: websh-dev-help@... |
|
|
Re: -httpresponse not working for me ...I have the same problem with a 302 response.
All other headers are set correctly, but I always receive HTTP/1.1 200 OK Code snippet: web::log redir.debug [web::response -httpresponse] web::response -httpresponse {HTTP/1.0 302 MOVED TEMPORARILY} web::log redir.debug [web::response -httpresponse] Log file: 04/29/07 00:44:45 [2784] redir.debug: 04/29/07 00:44:45 [2784] redir.debug: HTTP/1.0 302 MOVED TEMPORARILY websh 3.6.0b4, Apache 2.2.4, Linux 2.6.15-1.2054_FC5smp #1 SMP Tue Mar 14 16:05:46 EST 2006 i686 i686 i386 GNU/Linux Ulrich On Saturday 31 March 2007 08:12, Jason Murray wrote: > I have tried various things > > web::response -httpresponse "HTTP/1.1 303 See Other" > > And > > web::response -httpresponse 303 > > among others ... > > The response header in ethereal is: > -------------------------------------------------------------------------- > HTTP/1.1 200 OK > Date: Sat, 31 Mar 2007 05:38:28 GMT > Server: Apache/2.2.3 (Fedora) > Retry-After: 5 > Location: > http://?????????.com/index.ws3?XDxJ7kkLRVB75HbwNdRbDXgh1aPRGsbOrjov97PI3eRU >jXf85roW3SGgmgqwhldVGg315GrPUcYXYI7jSSOa6VvJALfgFil Generator: websh 3.6.0b4 > Content-Length: 84 > Connection: close > Content-Type: text/html; charset=UTF-8 > -------------------------------------------------------------------------- > > What am doing wrong. The other web::response subcommands and options seem > to work... > > Jason M --------------------------------------------------------------------- To unsubscribe, e-mail: websh-dev-unsubscribe@... For additional commands, e-mail: websh-dev-help@... |
|
|
Re: -httpresponse not working for me ...Hi guys
> I have the same problem with a 302 response. I tracked down the problem. It was introduced, when Apache 2.2.1 started to be more picky about internal representation of status and response line. Please use the head version from SVN or apply the attached fix to your 3.6.0b4 version. A list of other changes in HEAD vs. 3.6.0b4 can be found here: http://svn.apache.org/repos/asf/tcl/websh/trunk/CHANGES and in detail here: http://svn.apache.org/repos/asf/tcl/websh/trunk/src/ChangeLog hth Ronnie --- response_ap.c (revision 533622) +++ response_ap.c (working copy) @@ -69,6 +69,17 @@ r->status_line = ap_pstrdup(r->pool, ++response); #else /* APACHE2 */ r->status_line = (char *) apr_pstrdup(r->pool, ++response); + /* as of Apache 2.2.1, r->status_line must be in line with + r->status, therefore r->status must be set too */ + if (strlen(response) > 3) { + /* status code must be 3 digit numeric, which is supposed + to be followed by a blank in the status line */ + char tmp = response[3]; + response[3] = 0; + Tcl_GetInt(interp, response, &(r->status)); + response[3] = tmp; + } + #endif /* APACHE2 */ } assignIteratorToHashTable(responseObj->headers, &iterator); -- Meet us at Jazoon'07: 24 - 28 June - http://jazoon.com Ronnie Brunner | ronnie.brunner@... phone +41 (0)44 247 79 79 | fax +41 (0)44 247 70 75 Netcetera AG | 8040 Zürich | Switzerland | http://netcetera.ch --------------------------------------------------------------------- To unsubscribe, e-mail: websh-dev-unsubscribe@... For additional commands, e-mail: websh-dev-help@... |
| Free embeddable forum powered by Nabble | Forum Help |