Urgently ask questions about data transmission, do not use redirection
Source: Internet
Author: User
For more information about data transmission, do not use the redirection php platform to transmit data to the assumervlet, but do not use the redirection header. Otherwise, the java page is displayed. How can I send data ??, You can use curl, fsockopen, and other methods to implement file_get_contents ($ url ).
The php platform transmits data to the java servlet without using the redirection header. Otherwise, the java page is displayed. How can I send data ??
------ Solution --------------------
Implemented using curl, fsockopen, and other methods
File_get_contents ($ url); $ the url is followed by the data to be transmitted.
------ Solution --------------------
Discussion
Written in test1.php:
Written in test. php The result is that there is nothing on this page.
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.
A Free Trial That Lets You Build Big!
Start building with 50+ products and up to 12 months usage for Elastic Compute Service