RE: [Flashcoders] Problem with xml.sendAndLoad, IE, https, and ASP

2007-08-24 Thread James Wrubel
I ran in to this same problem. The issue is that since everything in https
is supposed to expire immediately (meaning not be cached because it is
secure), IE actually expires the XML that's returned after it gets to the
page object but before making it available to any content on the page, such
as your swf.

If you have access to the IIS server, you need to remove the Pragma:no-cache
and/or Cache-control:no-cache HTTP headers.

See:

http://www.blog.lessrain.com/?p=276

Jim 

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of matt
stuehler
Sent: Thursday, August 23, 2007 5:31 PM
To: Flashcoders mailing list
Subject: [Flashcoders] Problem with xml.sendAndLoad, IE, https, and ASP

All,

I'm working on a project in which a SWF uses xml.sendAndLoad to send a short
XML document to an ASP page.

The ASP page receives the XML, parses it, pulls out a few pieces of data,
runs a query against  a database, and returns a longer XML document.

Everything works perfectly when I run the app over http. However, when I run
the app over https, it doesn't work (I can't tell if it can't call the ASP
page, or the ASP page doesn't respond, but it does fail immediately).

A few notes:

- the SWF and ASP page are in the same subdirectory, so it's not a
cross-domain issue

- the SWF doesn't include any absolute references, so I haven't hardcoded
http anywhere in the actionscript

- strangely - the entire process works perfectly in Firefox. It only fails
in IE

- the entire process also works perfectly if I run the app in the Flash IDE,
and call the ASP page over https

- if I comment out ALL of the logic/code in the ASP page, so that it just
uses Response.write to send back a simple XML document, it still fails.
So, it's not a problem with the ASP - it's a problem with the SWF/ASP
communication.

Does anyone have any thoughts, suggestions, advice on why this is the case,
or how to fix it?

Cheers,
Matt Stuehler
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training http://www.figleaf.com
http://training.figleaf.com


___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


[Flashcoders] Problem with xml.sendAndLoad, IE, https, and ASP

2007-08-23 Thread matt stuehler
All,

I'm working on a project in which a SWF uses xml.sendAndLoad to send a
short XML document to an ASP page.

The ASP page receives the XML, parses it, pulls out a few pieces of
data, runs a query against  a database, and returns a longer XML
document.

Everything works perfectly when I run the app over http. However, when
I run the app over https, it doesn't work (I can't tell if it can't
call the ASP page, or the ASP page doesn't respond, but it does fail
immediately).

A few notes:

- the SWF and ASP page are in the same subdirectory, so it's not a
cross-domain issue

- the SWF doesn't include any absolute references, so I haven't
hardcoded http anywhere in the actionscript

- strangely - the entire process works perfectly in Firefox. It only fails in IE

- the entire process also works perfectly if I run the app in the
Flash IDE, and call the ASP page over https

- if I comment out ALL of the logic/code in the ASP page, so that it
just uses Response.write to send back a simple XML document, it
still fails. So, it's not a problem with the ASP - it's a problem with
the SWF/ASP communication.

Does anyone have any thoughts, suggestions, advice on why this is the
case, or how to fix it?

Cheers,
Matt Stuehler
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com