So i took a look at the On Web Connection and found that it is the same as
what you sent below except for one minor item.
Where you wrote: For ($i;1;
We had: For ($i;3;
So I switched it out and it still didnt work. On a whim, we compare the On
Web Connection with the OWC in another database where the script actually
works. It resides on a PC using 4DServer 2004.6r2 to serve the site but its
OWC is using the 2003 code. So, I switched the OWC code around in the
broken site to use the 2003 code instead of the 2004 code and all works as
desired. What could be causing the 2003 code to be working when all things
point to it needing 2004 code in the On Web Connection? (hope I didnt lose
you on that one....)
aparajita wrote:
>
>> Yes - it has been switched but see my note below:
>>
>> This is weird. When I run the code on the PC server it works as
>> designed,
>> but it runs on the 2003 On Web Connection code even though we are
>> using 4D
>> 2004.6r2 to serve the site. When I run the script on the Mac, its
>> using 4D
>> 2004.6r2 with the 2004 code in On Web Connection and it fails on the
>> redirect. Any thoughts?
>
> If I remember correctly I made a change to the 4D 2004 code that
> might help. Try this:
>
> `-----------------------------------------------------------------------
> ---
> ` 4D 2004+ code
> `-----------------------------------------------------------------------
> ---
>
> C_BLOB($response)
>
> For ($i;1;Size of array(A4D_ResponseHeaderNames))
> TEXT TO BLOB(A4D_ResponseHeaderNames{$i}+":
> "+A4D_ResponseHeaderValues{$i}+"\r\n";$response;Text without length ;*)
> End for
>
> `Need an extra CRLF after the headers to separate them from the body
> TEXT TO BLOB("Connection: close\r\n\r\n";$response;Text without
> length ;*)
>
> COPY BLOB(A4D_Response;$response;0;BLOB size($response);BLOB size
> (A4D_Response))
> SET BLOB SIZE(A4D_Response;0)
> SEND HTTP RAW DATA($response)
>
> `-----------------------------------------------------------------------
> ---
> ` End of 4D 2004+ code
> `-----------------------------------------------------------------------
> ---
>
> Regards,
>
> Aparajita
> www.aparajitaworld.com
>
> "If you dare to fail, you are bound to succeed."
> - Sri Chinmoy | www.srichinmoylibrary.com
>
>
> _______________________________________________
> Active4D-dev mailing list
> [email protected]
> http://mailman.aparajitaworld.com/mailman/listinfo/active4d-dev
> Archives: http://mailman.aparajitaworld.com/archive/active4d-dev/
>
>
--
View this message in context:
http://www.nabble.com/Having-issues-with-redirect%28-login.a4d%29-tf4438263s22836.html#a12683775
Sent from the Active4D mailing list archive at Nabble.com.
_______________________________________________
Active4D-dev mailing list
[email protected]
http://mailman.aparajitaworld.com/mailman/listinfo/active4d-dev
Archives: http://mailman.aparajitaworld.com/archive/active4d-dev/