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

129
Views
Intercept outgoing HXR requests and their content

I am looking to monitor all outgoing HXR requests on the page in order to intercept a specific one that I wish to extract its data to log.

Here's the specific request I am trying to intercept:

Request header from the console

Request body I want to extract

Here's what I tried so far:

(function(send) {
XMLHttpRequest.prototype.send = function(body) {
    var info="send data\r\n"+body;
    console.log(info);
    send.call(this, body);
};
})(XMLHttpRequest.prototype.send);

This seems to be somehow working because I get some requests logged in the console but not the ones I am looking for. I also get some send data [object FormData] logged.

I am probably missing something about which HXR requests I am intercepting with my script and would love some help! Thanks for your time!

about 4 years ago · Juan Pablo Isaza
1 answers
Answer question

0

This may just be the reason for the implicit conversion, you can try the JSON.Stringify(body) method.

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!