SitePoint Sponsor

User Tag List

Results 1 to 4 of 4
  1. #1
    SitePoint Enthusiast
    Join Date
    May 2011
    Posts
    55
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    PHP Curl data post issue

    Hi All,

    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.
    PHP Programming Itís more than just writing code

  2. #2
    SitePoint Addict Shaydez's Avatar
    Join Date
    Jul 2006
    Location
    Boca Raton, Florida
    Posts
    356
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)
    it could be that the host is blocking your request?
    Sr. Website Developer and Internet Marketing
    www.CarlosJa.com Note: If anyone
    needs to get ahold of me please feel free to email me through
    my site. Apparently i missed quite a few private messages.

  3. #3
    SitePoint Member
    Join Date
    Jun 2010
    Posts
    15
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quote Originally Posted by jimmybrion View Post
    Hi All,

    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.
    first open the url with file_get_contents and see if the url is accessible from the system.

  4. #4
    SitePoint Wizard
    Join Date
    Apr 2002
    Posts
    2,318
    Mentioned
    3 Post(s)
    Tagged
    0 Thread(s)
    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?


Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •