Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8902819
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 15, 20262026-06-15T01:42:35+00:00 2026-06-15T01:42:35+00:00

When I execute a simple XML HTTP Request from my server using the code

  • 0

When I execute a simple XML HTTP Request from my server using the code below

var targetUrl = "http://server/Service1.svc?input1=uno&input2=duo";
document.getElementById("console").innerHTML += "<br>commencing";

var xhr = new XMLHttpRequest();
xhr.onload = function () {
  document.getElementById("console").innerHTML += "<br>callbacking";
  alert(xhr.responseText);
}

xhr.open("GET", targetUrl);
document.getElementById("console").innerHTML += "<br>finishing";

xhr.send();

I get status code 302 in the console of FireBug. According to this W3 article, status code 302 means that the resource is temporarily redirected. I’m not fully certain on what that mean in my case because when I type my URL into the FireFox, I get the response as supposed to, looking great.

There are numerous articles regarding this issue but I can’t get it straight. For instance, this one only restates the definition of the status code. This one suggests to use HEAD instead of GET but that’s not an option in my case (unless absolutely necessary). Here it’s even claimed that the status code 302 automatically leads to a correct redirect to the plac ewhere the page moved to (resulting in status code 200), which in my case isn’t true.

I’ve tried looking at xhr.getRespoonseHeader("Content-Type") but, apparently, it’s null.

I’m stuck. What can I do about my problem?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-15T01:42:37+00:00Added an answer on June 15, 2026 at 1:42 am

    It might have to do with some internal redirect on the IIS server. I’d also check if the service is installed in an application pool.

    Also, it might be something like a protocol switch or domain ambiguity (i.e. secured/unsecured http and/ or with/sans w3 prefix).

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

The command I'm trying to execute from the terminal: curl http://acme.example.com/controller_name/destroy.xml?api_key=123&id=150&other_id=430 Just a simple
I want to execute simple statement: SELECT * FROM OPENROWSET('MICROSOFT.JET.OLEDB.4.0','Text;Database=C:\Temp\;','SELECT * FROM [test.csv]') And
In my simple custom shell I'm reading commands from the standard input and execute
Why does this quite simple xquery takes 10min to execute in sql server (the
I'm having a problem with getting a simple output from a web service using
I am writing a Java client that communicates with a remote server via HTTP/XML.
I have created a simple method to retrieve XML output from an HTTPService and
I have this simple code in facelets numbers.xhtml: <?xml version='1.0' encoding='UTF-8' ?> <!DOCTYPE html
I have a very simple java applet that I took from here: http://docs.oracle.com/javase/tutorial/deployment/applet/subclass.html import
Don't let below code scare you away . The question is really simple, only

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.