问题描述
使用之间的区别是什么的HTTPService
和的URLRequest
从柔性网页,并要求你的数据与Servlet
What is the difference between using HTTPService
and URLRequest
for requesting your data from a flex page to servlet
推荐答案
的是请求对象包含它的使用更基本的加载器类型比的HTTPService,喜欢的URLLoader要加载的URL,后参数等一般。
URLRequest is the Request Object that contains the URL to load, the post parameters, etc. Usually it is used with more basic loader types than HTTPService, like URLLoader.
的HTTPService 直接取URL作为它的一个属性,所以它并不需要一个URLRequest。从技术上讲,你可以使用一个URLRequest提供的其他有效载荷,因为它是一个对象和的HTTPService的请求参数可以是任何对象。
HTTPService takes the URL directly as one of its properties, so it doesn't need a URLRequest. Technically, you could use a URLRequest to provide the rest of the "payload," since it is an Object and the request parameter of HTTPService can be any Object.
这篇关于软硬度:使用之间的区别的HTTPService和URLRequest的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!