Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 3 of 3
  1. #1
    New Coder
    Join Date
    Jul 2007
    Posts
    24
    Thanks
    1
    Thanked 0 Times in 0 Posts

    Sending POST data without a form

    Hey all!

    Just wondering if it's possible to submit a POST form without actually outputing the form to the user first.

    I'm communicating with an API that accepts POST data, but was hoping there was a better or more secure way of sending POST variables/values than creating a php/html page that submits a hidden form after 0, 1 or 2 seconds using meta tags.

    Not urgent or vital, but more of a ponder.

    Thanks!

  • #2
    Senior Coder kbluhm's Avatar
    Join Date
    Apr 2007
    Location
    Philadelphia, PA, USA
    Posts
    1,509
    Thanks
    3
    Thanked 258 Times in 254 Posts
    This could be done with PHP's CURL library, or fsockopen() as a non-CURL option.
    Last edited by kbluhm; 08-23-2007 at 03:26 AM.

  • Users who have thanked kbluhm for this post:

    hardnrg (08-23-2007)

  • #3
    New Coder
    Join Date
    Jul 2007
    Posts
    24
    Thanks
    1
    Thanked 0 Times in 0 Posts


  •  

    Posting Permissions

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