curl - send GET request via php -
i need send request remote server xml parameters.
example:
https://url.com/test.jsp?<xml></xml>
how it?
i tried curl, certificate error. tried disable checking no avail.
curl_setopt($ch, curlopt_returntransfer, true); curl_setopt($ch, curlopt_ssl_verifypeer, false); curl_setopt($ch, curlopt_ssl_verifyhost, false);
any idea? possible using file_get_contents() ?
curl uses get
default, , you'd use when, well, getting server. opposed post
used post data sever.
you can pass in parameters when using get.
https://url.com/test.jsp?somexmldata=data&someotherxmldata=someotherdata
you used file_gets_content
long know url want data.
Comments
Post a Comment