Hi Igor,

 

The contentType property of HTTPService indicates the type of data sent from the client to the server. If you’re not passing any data when you invoke httpService.send(), remove the contentType attribute from your HTTPService tag and everything should run fine.

 

If the contentType is set to application/xml, HTTPService assumes you have XML formatted data that you want to send and forces the request method to POST so that the XML payload can be passed in the request body.

 

Best,

Seth

 

 


From: [email protected] [mailto:[EMAIL PROTECTED] On Behalf Of isvibilsky
Sent: Tuesday, August 08, 2006 10:13 AM
To: [email protected]
Subject: [flexcoders] HTTPService GET method issue

 

Hi all,

I got stuck trying to get a configuration file from my ISP. Here is
the code snippet:

<mx:HTTPService id="httpService" url="">ria/config/config.xml"
resultFormat="object"
contentType="application/xml"
useProxy="false" method="GET" result="readConfig();"
fault="Alert.show(event.fault.getStackTrace());">
</mx:HTTPService>
After getting Error 2032 I looked at the http header information in my
ISP log file:
..."POST /ria/config/config.xml HTTP/1.1" 405 334...

How does it happen? I explicitly indicated "GET", also GET is the
default method for HTTPService.

Is that a bug or I'm missing something?

Please help.

Igor.
.

__._,_.___

--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com





SPONSORED LINKS
Web site design development Computer software development Software design and development
Macromedia flex Software development best practice


YAHOO! GROUPS LINKS




__,_._,___

Reply via email to