# Help with two basic API questions Youtube does not address

**URL:** <https://community.postman.com/t/help-with-two-basic-api-questions-youtube-does-not-address/16009>\
**Category:** Help Hub\
**Created:** [September 18, 2020, 1:56pm UTC](https://community.postman.com/t/help-with-two-basic-api-questions-youtube-does-not-address/16009 "2020-09-18T13:56:25Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![tonywhansen](https://avatars.discourse-cdn.com/v4/letter/t/eb9ed0/32.png) [@tonywhansen](https://community.postman.com/u/tonywhansen)\
**Post date:** [September 18, 2020, 1:56pm UTC](https://community.postman.com/t/help-with-two-basic-api-questions-youtube-does-not-address/16009/1 "2020-09-18T13:56:25Z")

</div>

I fundamentally misunderstand how PostMan conveys the method to the endpoint. My endpoint is PHP code that I write. Also, header\_vars and body\_vars are not being detected by my test endpoint. Need to solve these mysteries to proceed. Thanks.

 ![PostQuestion](https://us1.discourse-cdn.com/getpostman/original/3X/6/8/68ebf919beba7c65ab80a7b41e834928748fb9ff.jpeg)

---

<div class="post-metadata">

**Author:** ![kevin.swiber](https://sea2.discourse-cdn.com/getpostman/user_avatar/community.postman.com/kevin.swiber/32/3820_2.png) [@kevin.swiber](https://community.postman.com/u/kevin.swiber)\
**Post date:** [September 18, 2020, 5:50pm UTC](https://community.postman.com/t/help-with-two-basic-api-questions-youtube-does-not-address/16009/2 "2020-09-18T17:50:15Z")

</div>

Hi @tonywhansen,

The issue you’re facing here is on the PHP side. With respect to headers, at least, I believe the underscores are getting filtered out because of legacy CGI variable reasons. If you remove the underscore, it should show. I suspect a similar issue might be happening with the other areas in which you’re seeing problems.

In any case, I don’t believe this to be a Postman-specific issue. If you hit the Code link on the request, you can pull up the codegen examples. You can copy the curl request and try that as a sanity check.

Best,

Kevin

---

<div class="post-metadata">

**Author:** ![tonywhansen](https://avatars.discourse-cdn.com/v4/letter/t/eb9ed0/32.png) [@tonywhansen](https://community.postman.com/u/tonywhansen)\
**Post date:** [September 18, 2020, 7:49pm UTC](https://community.postman.com/t/help-with-two-basic-api-questions-youtube-does-not-address/16009/3 "2020-09-18T19:49:54Z")

</div>

I tried it again and this time the underscored variable names did get through! Weird.  
I found the PHP code to send the request (by the Code button).  
But I still do not understand how our PHP code managing the API recognizes whether the requesting method is HTTP\_Request2::METHOD\_GET or HTTP\_Request2::METHOD\_POST.
