I want to post data from one site to another site using curl call, when i try it gives me an error message .'unable to connect host.' same code work for other site if i try to post data from one site to another site.
it could be that the host is blocking your request?
first open the url with file_get_contents and see if the url is accessible from the system.
obviously, check the url you're using. output it just before you use it.
is the server you're accessing https and the url you're using is http?
This topic is now closed. New replies are no longer allowed.