Web Analytics Made Easy -
StatCounter PHP http post question? - CodingForum

Announcement

Collapse
No announcement yet.

PHP http post question?

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • PHP http post question?

    Hey,

    Im setting something up where i need to handle post data then send it back to the server

    the bit im struggling on is i dont know how to send post data without submiting it through a form?

    this is how the thing needs to work

    outside server sends post data[no problem] -> my server sends post data back to there server [problem]


    so how do i send post data to a url without using a submit button how do i just send the post array to a server?
    Kong Dog Toys

  • #2
    you basically open a socket on the other server and post to it.
    most developpers will use cURL for this --> http://www.php.net/curl
    Posting guidelines I use to see if I will spend time to answer your question : http://www.catb.org/~esr/faqs/smart-questions.html

    Comment


    • #3
      Originally posted by raf View Post
      you basically open a socket on the other server and post to it.
      most developpers will use cURL for this --> http://www.php.net/curl
      could you give me a code example of sending the post array to say yahoo.com?
      Kong Dog Toys

      Comment


      • #4
        well, if you follow the link i posted, then you'll find plenty of examplecode for posting data with and without using curl...
        Posting guidelines I use to see if I will spend time to answer your question : http://www.catb.org/~esr/faqs/smart-questions.html

        Comment

        Working...
        X