Hi Paul,

On 7/9/07, Paul Steven <[EMAIL PROTECTED]> wrote:

Thanks for the replies - this is really proving a bit of a nitemare
especially as I have never really done any server side stuff of this
nature
before.

I have asked the client to upload an xml file to the server and the
strange
thing is, when I use https in my flash file, I get the following error

Error opening URL 'https://dev01.maps-ict.com/examspec.xml'
Error #2044: Unhandled ioError:. text=Error #2032: Stream Error. URL:
https://dev01.maps-ict.com/examspec.xml
        at test_load_xml_fla::MainTimeline/test_load_xml_fla::frame1()


The difference between the protocols HTTP and HTTPS is the security
certificate. If your code works in HTTP, that validates your Actionscript
and hence the functionality of your code.

If the code does not work in HTTPS, there are 2 reasons
1) The security credentials that you provide through the browser(or the
SWF's Flash VM, in this case, is Flash IDE CS3) is wrong. By wrong
credentials I mean, Missing credentials or mismatch of the security cert.

2) you are hitting a flash bug, which requires that the header of the HTTP
request DOES NOT have "no cache" in the header. It should have "cache" as
option in the header. This is a old bug in Flash Player 8 (or 9). I m sure
this bug is not applicable to you (since you are running the code in the
Flash CS3 Editor) rather than on the browser. When you run in browser, the
whole HTTP "header" stuffs comes into picture.


Okay, lets see what you can do to get out of this:
 What is your way to run the Script, I mean, are you going to run it with
the client as a standalone app or you will publish this code in some server
and run from there?

If you are going to publish this SWF in the server:
             launch the HTML which embeds this URL and use relative URL in
your Movie to load the XML in the same server.

If you are going to run as standalone app:
              always use HTTP URL for pulling any data from server, HTTPS
requests does not work without making your standalone application aware of
the location of the security certificate.

  How do you get the security certificate and how do you make your
application use that certificate? I dont know!!



When I just use http, it appears to work.

Both URLs work in the browser

https://dev01.maps-ict.com/examspec.xml

and

http://dev01.maps-ict.com/examspec.xml


Thats right, this is because, your browser is aware of security cert of the
server.




--
Regards
--Varun S
http://mailvarun.blogspot.com

/* This mail was sent using 100% recycled electrons */
_______________________________________________
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

Reply via email to