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
    Regular Coder
    Join Date
    Jun 2002
    Posts
    905
    Thanks
    23
    Thanked 5 Times in 5 Posts

    POSTING with Authenication in PHP

    Hello all,

    I need to send a POST request to a location but need to send authentication in the headers, I don't know that its possible with HTML form so hoping there is something in PHP that can take care of it...

    PHP Code:
    POST /test.xml HTTP/1.0
    Content
    -Typeapplication/x-www/form-urlencoded
    Authorization
    password0001 
    I've have done some googl'in but not found anything about sending the authentication, if anyone can provide any assistance or resources that be wonderful.

    Many thanks
    Sir P

  • #2
    Senior Coder
    Join Date
    Jan 2007
    Posts
    1,648
    Thanks
    1
    Thanked 58 Times in 54 Posts
    Google for cURL.

  • Users who have thanked aedrin for this post:

    sir pannels (02-01-2008)

  • #3
    Regular Coder
    Join Date
    Jun 2002
    Posts
    905
    Thanks
    23
    Thanked 5 Times in 5 Posts
    Thanks aedrin


  •  

    Posting Permissions

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