0

I have a PHP C++ extension that monitors the web requests and captures the required request details with Call stacks.

Here from my PHP C++ extension whenever curl_exec(..) happens and a HTTP request is made to another PHP web application, I need to tag a data to the HTTP request that will be initiated/called and to retrieve the tagged data on the other side. How can i achieve this functionality.?

It is more of PHP internals. I am searching for some way to invoke the curl_setopt function from my PHP C++ extension and try to add a header in it but I am not sure if that will help. Is there possibility for this ?

Or is there any other possibility to add data to the HTTP request and retrieve the same data into the Invoked HTTP request.? And most importantly i need to achieve this from my PHP extension written in C++.

2
  • Why not just add a custom header on the PHP side? Why "inject" it via an extension? Commented Jun 6, 2019 at 10:19
  • @MatteoTassinari I am working on a Profiler for PHP. I need to do it on the fly via extension. Commented Jun 6, 2019 at 10:30

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.