Hi,

DId not work using 512+ spaces...

Again..this works in FF and Safari....not in IE.....


Note the class_notfound class....
It is a html redirect page that adds 500+ chars....



def notfound():
    dt=datetime.datetime.now()
    event="notfound"
    env = web.ctx['environ']
    HTTP_REFERER = env['HTTP_REFERER']
    PATH_INFO = env['PATH_INFO']

     redirect = replace_relative_href_link(PATH_INFO)
     rr = '/class_notfound?' + redirect
     raise web.seeother(rr)


class class_notfound:
    def GET(self):
        web.header("Content-Type","text/html; charset=utf-8")
        pqs = parse_query_string(web.ctx.query)

        for i,j in pqs.iteritems():
            redirect_url = mirror_url + '?redirect=' + j
        print redirect_url

        add = ""
        for i in xrange(500):
            add = add + '-'

        html = """
                    <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0
Transitional//EN">
                    <html>
                    <title></title>

                    <meta http-equiv="REFRESH" content="0;url=%s"></HEAD>
                    <BODY>
                    %s
                    </BODY>
                    </HTML>

        """ % (redirect_url,add)
        return html





On Mon, Apr 27, 2009 at 7:23 PM, Aaron Swartz <[email protected]> wrote:
>
> Just putting 512 spaces at the end should be enough.
>
> On Tue, Apr 28, 2009 at 1:19 AM, paul jobs <[email protected]> wrote:
>> how do we do padding and how big does it need to be
>> thanks
>>
>>
>> On 4/27/09, Aaron Swartz <[email protected]> wrote:
>>>
>>> > I am trying to get IE to work with a custom notfound message.....
>>>
>>> Just pad out the message so it's longer.
>>> >>
>>
>
> >
>

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"web.py" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [email protected]
For more options, visit this group at http://groups.google.com/group/webpy?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to