Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
0

problem loading xml file with POST on IIS

New Here ,
Sep 04, 2011 Sep 04, 2011

Hi All,

I am trying to load the xml file with URLLoader, with URLRequest set to use POST method.

The xml file gets loaded fine when I host my application on tomcat. But, on IIS, it gives Error #2032.

When I changed method to GET, it worked with IIS too.

Can anybody please highlight why it is not working with POST on IIS.

Thanks in advance!

TOPICS
ActionScript
6.9K
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Explorer ,
Sep 04, 2011 Sep 04, 2011

Well, there could be many reasons causing this issue. If you can give us more information, it would be helpful:

What is the IIS version?

What is O.S

Is the O.S "HOME" edition or "PROFESSIONAL"?

Are you running as a POWER USER, USER, or ADMINSTRATOR?

Is the IIS running local machine or on a server?

Have you tried any other machine with IIS and if you have are you still getting the same issue?

Perhaps IIS is set to only server "GET" method (Just a thought)

If I am not mistake, "GET" method is a 4k limit (it has been such a longtime, I could be wrong, please do Google it) so if you load a XML file, and if this file is more than 4k then it would be an instant issue.

Thanks.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Sep 05, 2011 Sep 05, 2011

Hi,

Thank you so much for your reply.

Please find my answers inline.

What is the IIS version? - 5.1

What is O.S - windows xp

Is the O.S "HOME" edition or "PROFESSIONAL"? - professional

Are you running as a POWER USER, USER, or ADMINSTRATOR? - administrator

Is the IIS running local machine or on a server? - on local machine

Have you tried any other machine with IIS and if you have are you still getting the same issue? - yes.. I tried with other machine too.. still having same problem

Perhaps IIS is set to only server "GET" method - could you please guide me as in how to check for this?

Thanks again.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Explorer ,
Sep 05, 2011 Sep 05, 2011

Hello Sneha,

I have not worked with IIS in a long time, however, I do remember there was some setting with regards to enabling the http methods such as (GET/POST). Have a look at this:

http://support.microsoft.com/kb/819267

I will do further reasearch and get back to you.

Thanks.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Sep 09, 2011 Sep 09, 2011
LATEST

Hey Thanks,

I think I got the solution. While loading xml file from URL, I was setting (URLRequest) url.method = URLRequestMethod.POST with url.data = true;

As I was assuming POST requires non null data.

Now, when I do not assign true to url.data, the xml gets loaded.

Still not clear, how does assigning url.data = true doesn't work with POST. Is it because I am setting url.data=true and not sending any data to server?

Anyways, Thanks so much for your replies.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines