SitePoint Sponsor

User Tag List

Results 1 to 4 of 4
  1. #1
    SitePoint Enthusiast
    Join Date
    Feb 2001
    Posts
    58
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    I have a credit card processor that gave me a cgi program that takes form post data and processes it to the gateway.

    I want to write a php script that will let me do batch processing. I know how to set up a comma delimited file and parse it to get the information out of it. I know how to send http headers from a php file to another script so that it looks like a form post. This is basically done by constructing the header and then fsockopen to the server on port 80. Then fput the header and then get the response.

    How would I send a https header? So far I have been unsuccessful. Any info or links to resources would be appreciated.
    Marty H.

  2. #2
    SitePoint Columnist Skunk's Avatar
    Join Date
    Jan 2001
    Location
    Lawrence, Kansas
    Posts
    2,066
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    You can do that using the Snoopy class:

    http://sourceforge.net/projects/snoopy/

  3. #3
    SitePoint Wizard silver trophy Karl's Avatar
    Join Date
    Jul 1999
    Location
    Derbyshire, UK
    Posts
    4,411
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Hi Marty,

    PHP doesn't natively support HTTPS, but it can be compiled with HTTPS support in it via the HTTPS module of via Curl. If you take a look at the PHP manual at http://www.php.net/manual/
    Karl Austin :: Profile :: KDA Web Services Ltd.
    Business Web Hosting :: Managed Dedicated Hosting
    Call 0800 542 9764 today and ask how we can help your business grow.

  4. #4
    SitePoint Enthusiast
    Join Date
    Feb 2001
    Posts
    58
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    THanks Karl. Unfortunately the server that I am on does not support CURL. Back to the drawing board, I guess.

    Oh, and snoopy uses curl.
    Marty H.


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
  •