How can a program access a webpage to obtain its return value? Solution
Source: Internet
Author: User
How can a program access a webpage to obtain its return value? This is an interface. when my program accesses this interface, it will return a string of an array of JSON-encoded objects. what methods can be used to obtain this array ?, CURLsocketfile_get_contents: this is an interface. how can I obtain the returned value when a program accesses a webpage?
This is an interface. when my program accesses this interface, it will return a string of an array of JSON-encoded objects. what methods can be used to obtain this array?
------ Solution --------------------
CURL
Socket
File_get_contents
------ Solution --------------------
Discussion
This is an interface. when my program accesses this interface, it will return a string of an array of JSON-encoded objects. what methods can be used to obtain this array?
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