Re: [flexcoders] HTTPService useProxy question...
Sent at 3:21pm You have to use a proxy, not Flex, but any proxy. The Flash Player is a client-side technology, and as such, it can only retreive data from sources within it's domain. So, if the XML you are looking for is outside your site, no dice without a proxy. I use PHP, for example, to hit swgcraft.com. It has gzipped XML files on it's site, and dev.jessewarden.com wants to use that data. PHP grabs the xml feed, unzips it, and sends it to Flex when Flex requests it. Since PHP is server-side, and not bound by any domain sandbox, I'm good to go. http://dev.jessewarden.com/swg/resources/ - Original Message - From: "heybluez" <[EMAIL PROTECTED]> To: Sent: Friday, July 08, 2005 3:14 PM Subject: [flexcoders] HTTPService useProxy question... Anyone bypass the flex proxy with useProxy="false"? I have a flex app that currently uses the server as a proxy but we want to bypass the flex server and go directly to the source HTTP post/request. For example, one source is an RSS feed that will come up in a browser but is an XML file. When I use HTTPService and hit that with the default settings (i.e. Flex Proxy) it works. As soon as I turn that off (i.e. useProxy="false") it says that it cannot retrieve data! I am looking to see what I need to do...I did see this in the manual: -- Note: You must use the Flex proxy to correctly return HTTP status codes from a service. -- Is this my issue? The direct hit on the .rdf (i.e. XML) file does not return status codes?! Is that possible? Ideas? Thanks, -Michael -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links <*> To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ <*> To unsubscribe from this group, send an email to: [EMAIL PROTECTED] <*> Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
RE: [flexcoders] HTTPService useProxy question...
Sorry that should be useProxy="false". Ted ;) > When you set proxy="false" you need to have crossdomain.xml files set-up > to > handle the flash player security sandbox. If you do not have > crossdomain.xml > files configured, the player will block the URL request internally. > > Here is the lowdown on crossdomain.xml. > > http://www.macromedia.com/cfusion/knowledgebase/index.cfm?id=tn_14213 > > Here are some sample crossdomain.xml files: > > http://www.macromedia.com/crossdomain.xml > http://www.yahoo.com/crossdomain.xml > http://www.ifbin.com/crossdomain.xml > > These files are typically found on the server where the data is being > requested. The Flash Player will automatically check this address for any > domain or subdomain that is accessed. > > The Flex proxy gets around this restriction. > > Cheers, > > Ted ;) > > > -Original Message- > > From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On > > Behalf Of heybluez > > Sent: Friday, July 08, 2005 3:15 PM > > To: flexcoders@yahoogroups.com > > Subject: [flexcoders] HTTPService useProxy question... > > > > Anyone bypass the flex proxy with useProxy="false"? I have a flex app > > that currently uses the server as a proxy but we want to bypass the > > flex server and go directly to the source HTTP post/request. > > > > For example, one source is an RSS feed that will come up in a browser > > but is an XML file. When I use HTTPService and hit that with the > > default settings (i.e. Flex Proxy) it works. As soon as I turn that > > off (i.e. useProxy="false") it says that it cannot retrieve data! > > > > I am looking to see what I need to do...I did see this in the manual: > > > > -- > > Note: You must use the Flex proxy to correctly return HTTP status > > codes from a service. > > -- > > > > > > Is this my issue? The direct hit on the .rdf (i.e. XML) file does not > > return status codes?! Is that possible? > > > > Ideas? > > > > Thanks, > > -Michael > > > > > > > > > > -- > > Flexcoders Mailing List > > FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt > > Search Archives: http://www.mail- > archive.com/flexcoders%40yahoogroups.com > > Yahoo! Groups Links > > > > > > > > > > > > > -- > Flexcoders Mailing List > FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt > Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com > Yahoo! Groups Links > > > > -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links <*> To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ <*> To unsubscribe from this group, send an email to: [EMAIL PROTECTED] <*> Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
RE: [flexcoders] HTTPService useProxy question...
When you set proxy="false" you need to have crossdomain.xml files set-up to handle the flash player security sandbox. If you do not have crossdomain.xml files configured, the player will block the URL request internally. Here is the lowdown on crossdomain.xml. http://www.macromedia.com/cfusion/knowledgebase/index.cfm?id=tn_14213 Here are some sample crossdomain.xml files: http://www.macromedia.com/crossdomain.xml http://www.yahoo.com/crossdomain.xml http://www.ifbin.com/crossdomain.xml These files are typically found on the server where the data is being requested. The Flash Player will automatically check this address for any domain or subdomain that is accessed. The Flex proxy gets around this restriction. Cheers, Ted ;) > -Original Message- > From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On > Behalf Of heybluez > Sent: Friday, July 08, 2005 3:15 PM > To: flexcoders@yahoogroups.com > Subject: [flexcoders] HTTPService useProxy question... > > Anyone bypass the flex proxy with useProxy="false"? I have a flex app > that currently uses the server as a proxy but we want to bypass the > flex server and go directly to the source HTTP post/request. > > For example, one source is an RSS feed that will come up in a browser > but is an XML file. When I use HTTPService and hit that with the > default settings (i.e. Flex Proxy) it works. As soon as I turn that > off (i.e. useProxy="false") it says that it cannot retrieve data! > > I am looking to see what I need to do...I did see this in the manual: > > -- > Note: You must use the Flex proxy to correctly return HTTP status > codes from a service. > -- > > > Is this my issue? The direct hit on the .rdf (i.e. XML) file does not > return status codes?! Is that possible? > > Ideas? > > Thanks, > -Michael > > > > > -- > Flexcoders Mailing List > FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt > Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com > Yahoo! Groups Links > > > > -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links <*> To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ <*> To unsubscribe from this group, send an email to: [EMAIL PROTECTED] <*> Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/