Hi Seth,

Thanks for the reply. Yes, my request has no data. I think this is the
case. I went ahead and replaced the HTTPService with URLRequest for
the time being. The second one worked fine. I will test it again
according to your input.

Regards,
Igor.


--- In [email protected], "Seth Hodgson" <[EMAIL PROTECTED]> wrote:
>
> 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="mydomain/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 
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/
 


Reply via email to