# Sending post request from Post Man $\_SERVER showing Get request

**URL:** <https://community.postman.com/t/sending-post-request-from-post-man-server-showing-get-request/2701>\
**Category:** Help Hub\
**Created:** [September 17, 2018, 5:04pm UTC](https://community.postman.com/t/sending-post-request-from-post-man-server-showing-get-request/2701 "2018-09-17T17:04:54Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![mb1990](https://avatars.discourse-cdn.com/v4/letter/m/53a042/32.png) [@mb1990](https://community.postman.com/u/mb1990)\
**Post date:** [September 17, 2018, 5:04pm UTC](https://community.postman.com/t/sending-post-request-from-post-man-server-showing-get-request/2701/1 "2018-09-17T17:04:54Z")

</div>

Hi all, sending post request from postman to test an api im building. when i return the $\_SERVER variable to postman from my server its showing request type as GET but clearly sending post request. What can i do to fix this?

curl -X POST   
[http://mysite.ca](http://mysite.ca)   
-H ‘Accept: application/json’   
-H ‘Cache-Control: no-cache’   
-H ‘Content-Type: application/json’   
-H ‘Postman-Token: f206add3-3869-4f33-aead-c2eb42823b47’   
-H ‘X-Custom-Auth-Header: 1111111111’   
-d ‘{  
“store\_id”:11111,  
“producer”:“stores/abcde”,  
“scope”:“store/order/statusUpdated”,  
“data”:{  
“type”:“order”,  
“id”:173331  
},  
“hash”:“3f9ea420af83450d7ef9f78b08c8af25b2213637”  
}’

$\_SERVER Variable

GETArray  
(  
[USER] =\> www-data  
[HOME] =\> /var/www  
[SCRIPT\_NAME] =\> /index.php  
[REQUEST\_URI] =\> /  
[QUERY\_STRING] =\>  
**[REQUEST\_METHOD] =\> GET**  
[SERVER\_PROTOCOL] =\> HTTP/1.1  
[GATEWAY\_INTERFACE] =\> CGI/1.1  
[REMOTE\_PORT] =\> 49502  
[SCRIPT\_FILENAME] =\> /var/www/mysite.ca/index.php  
[SERVER\_ADMIN] =\> [myemail@gmail.com](mailto:myemail@gmail.com)  
[CONTEXT\_DOCUMENT\_ROOT] =\> /var/www/mysite.ca  
[CONTEXT\_PREFIX] =\>  
[REQUEST\_SCHEME] =\> https  
[DOCUMENT\_ROOT] =\> /var/www/mysite.ca  
[REMOTE\_ADDR] =\> 11.11.11.11  
[SERVER\_PORT] =\> 443  
[SERVER\_ADDR] =\> 11.11.11.11  
[SERVER\_NAME] =\> mysite.ca  
[SERVER\_SOFTWARE] =\> Apache/2.4.33 (Ubuntu)  
[SERVER\_SIGNATURE] =\>

---

<div class="post-metadata">

**Author:** ![mb1990](https://avatars.discourse-cdn.com/v4/letter/m/53a042/32.png) [@mb1990](https://community.postman.com/u/mb1990)\
**Post date:** [September 17, 2018, 5:09pm UTC](https://community.postman.com/t/sending-post-request-from-post-man-server-showing-get-request/2701/2 "2018-09-17T17:09:08Z")

</div>

issue was because in postman i was sending as mysite.ca and not [https://mysite.ca](https://mysite.ca)

---

<div class="post-metadata">

**Author:** ![themhz](https://sea2.discourse-cdn.com/getpostman/user_avatar/community.postman.com/themhz/32/9367_2.png) [@themhz](https://community.postman.com/u/themhz)\
**Post date:** [August 6, 2021, 10:58pm UTC](https://community.postman.com/t/sending-post-request-from-post-man-server-showing-get-request/2701/3 "2021-08-06T22:58:08Z")

</div>

Hi. I am having the same problem. I use HTTP method post but when I echo from php echo $\_SERVER[‘REQUEST\_METHOD’]; it prints get… how to fix? what does https have to do with it?
