What is the equivalent of ASP.NET's WebRequest in php?
+2
A:
You can to use curl
.
Some samples here: Make Yahoo! Web Service REST Calls with PHP
Rubens Farias
2010-01-11 01:46:34
+1
A:
Just to add that the file() function can work with URLs too:
http://www.php.net/manual/en/function.file.php
A URL can be used as a filename with this function if the fopen wrappers have been enabled.
HTTP, HTTPS are both soported but using these functions you're generating only GET request.
I'd also go curl for the whole package.
gnrfan
2010-01-11 04:58:18