Home  >  Article  >  Backend Development  >  swift-php How to accept url header data sent from ios side in post mode

swift-php How to accept url header data sent from ios side in post mode

WBOY
WBOYOriginal
2016-09-21 14:13:031162browse

That is, when developing, the url header submitted by the ios side contains a token value. So how does PHP accept the token contained in the url header?

Reply content:

That is, when developing, the url header submitted by the ios side contains a token value. So how does PHP accept the token contained in the url header?

First, check the name of the specific http header

<code class="php">var_dump($_SERVER);</code>

Next, get it through the array

<code class="php">$token = $_SERVER[$tokenName];</code>

Finally, do your logic.

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn