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

156
Views
Is it possible to get the request headers in a request?

Title pretty much sums it up, I am trying to intercept a web request and get the request headers.

This is what I tried:

let oldSend = XMLHttpRequest.prototype.send    
XMLHttpRequest.prototype.send = function() {
    console.log(this.responseHeaders);
    return oldSend.apply(this, arguments);
}

This is what I expect:

{"test":"abcd1234"}
about 4 years ago · Juan Pablo Isaza
1 answers
Answer question

0

on PHP

<?php
header('Test 123 I Love Bacon'); // just to test header_ list

var_dump(headers_list()); // show headers to be sent by the browser
?>
about 4 years ago · Juan Pablo Isaza 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!