can you show some code and tel us how it expect to behave?

On Thursday, 28 June 2012 02:02:02 UTC-5, Larry Weinberg wrote:
>
> I have a function that returns JSON data.
> It works great when called directly over https (using curl or pycurl).
>
> If however I have a redirect somewhere that sends me to my web2py function 
> it  returns html instead which requests a redirect from the caller.
> I would like it to continue to deliver the JSON.  Is that possible or not 
> allowed ?
>
> It delivers something like this:
> <!-DOCTYPE HTML SECURITY (Redirector) ->
> <HTML>
> <HEAD>
> <TITLE>My Title</TITLE>
> <meta http-equiv="Pragma" content="no-cache">
> <meta http-equiv="expires" content="Thu, 29 Nov 2007 16:18:42 GMT">
> <META HTTP-EQUIV="REFRESH" CONTENT="0; URL=
> https://mysite/myapp/mycontroller/statecheck?state=84b148ce-8960-4393-a5a2-f6e92d6ff169
> ">
>
>
>

Reply via email to