Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

295
Views
Obtenga el encabezado de tipo de contenido de respuesta de XHR

Me gustaría ver si el encabezado era texto/html o texto/xml. Si era texto/html, entonces hubo un error y preferiría detectarlo antes de continuar.

over 4 years ago · Santiago Trujillo
1 answers
Answer question

0

Utilice el método getResponseHeader() .

Ejemplo mínimo:

 <script> function hand () { console.log(this.getResponseHeader('content-type')); } var x = new XMLHttpRequest(); x.onreadystatechange = hand; x.open('GET', 'index.html', true); x.send(); </script>
over 4 years ago · Santiago Trujillo Report
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!