Home >Backend Development >PHP Tutorial >PHP uses socket to simulate post fsockopen to send data_PHP tutorial
I'm a little upset today. Let's write an article about php fsockopen post related data. We can imitate the source and then send it to the other server. Friends in need can take a look.
The code is as follows
|
Copy code |
||||
POST /destination program HTTP/1.1 Accept: */*
| Pragma: no-cache