Php remote url call problems

Source: Internet
Author: User
Php call remote url question, if: $ url & nbsp ;=& nbsp; http://www.xx.com /? Param = yyyyyyy; & nbsp; no response is returned when file_get_contents is used. My param is long. About 3000 mobile phone numbers call remote URLs using php
Excuse me, if: $ url = http://www.xx.com /? Param = yyyyyyy; no response is returned when file_get_contents is used. My param is long. About 3000 mobile phone numbers are connected as strings. Is there a limit on the length of the url parameter called by file_get_contents? Is there a better call method? What I am doing now is to call a remote interface to send text messages. Is there a better and safer call method? Share:
------ Solution --------------------
Is allow_url_fopen enabled?

Recommended cURL
------ Solution --------------------
In GET mode, the length of the URL address is limited. So long, there will certainly be problems.
------ Solution --------------------
The remote interface should be described.
You can use the POST method.
------ Solution --------------------
Both socket and curl can be used.
------ Solution --------------------
Maybe the other party is forbidden. you can use curl to simulate the open operation of the browser.

Contact Us

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

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.