# Track behavior via POST curl script

**URL:** <https://forum.mautic.org/t/track-behavior-via-post-curl-script/8507>\
**Category:** Development\
**Created:** [May 15, 2017, 10:12pm UTC](https://forum.mautic.org/t/track-behavior-via-post-curl-script/8507 "2017-05-15T22:12:56Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![macrogerio](https://avatars.discourse-cdn.com/v4/letter/m/d26b3c/32.png) [@macrogerio](https://forum.mautic.org/u/macrogerio)\
**Post date:** [May 15, 2017, 10:12pm UTC](https://forum.mautic.org/t/track-behavior-via-post-curl-script/8507/1 "2017-05-15T22:12:56Z")

</div>

I would like to follow the behavior of a leadership in several sites, integrating with the registration tool they already have.  
  
  
  
For this I have created a PHP script that passes the data to the mautic. However, I am not managing to track leadership behavior, perhaps because the “record” was not done via standard HTML form, but by a curl call in a third PHP script.  
  
  
  
Does anyone know why PHP registration does not work in the same way as a regular HTML file?  
  
  
  
PS: I am using a registration code provided by escopecz at [https://github.com/escopecz/mautic-form-submit](https://github.com/escopecz/mautic-form-submit).  
  
  
  
With regard to capture everything works correctly. Just the trail that does not. Can someone help me?

---

<div class="post-metadata">

**Author:** ![macrogerio](https://avatars.discourse-cdn.com/v4/letter/m/d26b3c/32.png) [@macrogerio](https://forum.mautic.org/u/macrogerio)\
**Post date:** [May 15, 2017, 10:12pm UTC](https://forum.mautic.org/t/track-behavior-via-post-curl-script/8507/2 "2017-05-15T22:12:56Z")

</div>

I would like to follow the behavior of a leadership in several sites, integrating with the registration tool they already have.

For this I have created a PHP script that passes the data to the mautic. However, I am not managing to track leadership behavior, perhaps because the “record” was not done via standard HTML form, but by a curl call in a third PHP script.

Does anyone know why PHP registration does not work in the same way as a regular HTML file?

PS: I am using a registration code provided by escopecz at [https://github.com/escopecz/mautic-form-submit](https://github.com/escopecz/mautic-form-submit).

With regard to capture everything works correctly. Just the trail that does not. Can someone help me?
