![]() |
|
Welcome to the Computer Webmaster Gaming Console Graphics Forum forums. You are currently viewing our boards as a guest which gives you limited access to view most discussions and access our other features. By joining our free community you will have access to post topics, communicate privately with other members (PM), respond to polls, upload content and access many other special features. Registration is fast, simple and absolutely free so please, join our community today! If you have any problems with the registration process or your account login, please contact contact us. |
| |||||||
| PHP PHP for some can be one of the hardest website programming codes, so do you need help on your PHP script, if it is php4, php5 or lower this is the place for you for any PHP help. |
![]() |
| | LinkBack | Thread Tools | Display Modes |
| | #1 | ||
| Does anyone know of a way to use PHP /w Authorize.net AIM without using cURL? Our website is hosted on a shared drive and the webhost company doesn't installed additional software (such as cURL) on the server because of that. Our site will have an SSL certificate next week, so I would like to use AIM instead of SIM, however, I don't know how to send data via POST over https and recieve data from the Authorize.net server over an https connection. Does anyone have experience with this? -- William C. White -----BEGIN PGP PUBLIC KEY BLOCK----- Version: PGP 8.0 - not licensed for commercial use: www.pgp.com Comment: You really should protect your privacy! mQGiBD3dmakRBAD1cyMfBtE9eINVv4DcFI7cxp+ou6Y/8WqgZxZNtk2QWUeT9gs1 iCgAsmAw1841AFXcg677dZowJT8IBDadf82o8DLNYymHqcUANv T0hSyweEx7dMfz Az1e61+ufIxWMKkle4IPaGajCzb6Ox47fBvEwYZAEwV3/x7ghOuUX6KPlQCg/wOZ RbNGxPu3NBDgQ84FDbeZoCMD/2m8nPCJD+6DFlC9vyzxvHEaZE403gCG3FEQgRfW AqM4PLLDs7tKcvYIpwQf0SCuUTwZIUBpmm5as6j28GO/D1STVBwI7jFt5Dpu323z XBA5hhI02boRwf0zf8ELg7OSGqgAqC/ZRQnGIHtzqbNDJ/ker1qdo4Mxzwun1Iwr bHQwA/9PVQWJU9mlvRaGPg/LxFkk6dXUuhPTc9R2n/2YENwLXgEb8WxiCW5hBSyz lzlUqPwIoc0vyXXMHOjbbCgJp9kfaGI2SHTeV9GKTxh33G1dVU 0Mk5DUbzcWeK2X Hu6b9YfbHl/EhDG1Wi4NjQkfNWjzXEadYfe4isDmKX1q+QBahLQoV2lsbGlhb SBD dXJ0aXMgV2hpdGUgPHUyaWxsQGhvdG1haWwuY29tPokAWAQQEQ IAGAUCPd2ZqQgL CQgHAwIBCgIZAQUbAwAAAAAKCRBCYmJsMyLtl+c/AKCrXj73n8Ss5P7RJq4K2N5R I8qluwCfTdUGTebngPHGAFnlXZY2FBt7oWO0K1dpbGxpYW0gQ3 VydGlzIFdoaXRl IDx3d2hpdGVAY2hhbWluY | |||
|
| Advertisements |
| | #2 | ||
| Jon Kraft <jon@jonux.co.uk> wrote in message news:<Xns93A46BADADBE7jonjonuxcouk@130.133.1.4>... > "William C. White" <u2ill@hotmail.com> wrote: > > > Does anyone know of a way to use PHP /w Authorize.net AIM without > > using cURL? Our website is hosted on a shared drive and the webhost > > company doesn't installed additional software (such as cURL) on the > > server because of that. Our site will have an SSL certificate next > > week, so I would like to use AIM instead of SIM, however, I don't know > > how to send data via POST over https and recieve data from the > > Authorize.net server over an https connection. Does anyone have > > experience with this? > > You could use fsockopen (search for "POST" in the User Contributed Notes): > http://uk.php.net/fsockopen AFAIK, you cannot post data via fsockopen() to https server... --- "If there is a God, he must be a sadist" Email: rrjanbiah-at-Y!com | |||
|
| | #3 | ||
| ng4rrjanbiah@rediffmail.com (R. Rajesh Jeba Anbiah) wrote: > Jon Kraft <jon@jonux.co.uk> wrote: >> >> You could use fsockopen (search for "POST" in the User Contributed >> Notes): http://uk.php.net/fsockopen > > AFAIK, you cannot post data via fsockopen() to https server... Since v4.3 there are different stream transports available (tcp, udp, ssl..). If PHP is built with OpenSSL, you can use them, e.g.: $fs = fsockopen("ssl://www.secureserver.com", 443); http://uk.php.net/manual/en/transports.php HTH; JOn | |||
|
| | #4 | ||
| Jon Kraft <jon@jonux.co.uk> wrote in message news:<Xns93A563A3B8E73jonjonuxcouk@130.133.1.4>... > ng4rrjanbiah@rediffmail.com (R. Rajesh Jeba Anbiah) wrote: > > > Jon Kraft <jon@jonux.co.uk> wrote: > >> ng4rrjanbiah@rediffmail.com (R. Rajesh Jeba Anbiah) wrote: > >> > Jon Kraft <jon@jonux.co.uk> wrote: > >> >> > >> >> You could use fsockopen (search for "POST" in the User Contributed > >> >> Notes): http://uk.php.net/fsockopen > >> > > >> > AFAIK, you cannot post data via fsockopen() to https server... > >> > >> Since v4.3 there are different stream transports available (tcp, udp, > >> ssl..). If PHP is built with OpenSSL, you can use them, e.g.: > > > > I see... > > > >> $fs = fsockopen("ssl://www.secureserver.com", 443); > >> > >> http://uk.php.net/manual/en/transports.php > > > > This manual page is not clear to me especially the "Table J-1. > > Context options for ssl:// and tls:// transports (since PHP 4.3.2)" > > There is no information about where to use the parameters like > > "verify_peer". If you know more about the stuff, you may add some > > useful user notes there---that will be really helpful to others. > > I don't know, that stuff seems relatively new, Yes. When I moved to PHP 4.3.1, I've looked at the changelog which said fsockopen() can handle ssl://. I tried a lot, but it failed --- I think, I've used a wrong port. > but I should think you'd > use them as additional directives in php.ini? Someone? > PS: On this page is an example of posting to a secure server (Example 2): > http://uk.php.net/manual/en/ref.stream.php Thanks for pointing me this page. Nice example, but no info about "certificates", "verify peer" stuffs. I feel, cURL is so handy than this fsockopen() version. --- "We live to die; we die to live" Email: rrjanbiah-at-Y!com | |||
|
| Featured Websites | ||||
|
![]() |
| Tags: authorizenet, curl, php |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| Display Modes | |
| |
Similar Threads | ||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| The page curl effect on Spotfire.com | Quick Function | Graphics in general | 4 | 06-11-2007 7:04 PM |
| Adboe, Forbes, and page curl | Vizros Plug-ins | Graphics in general | 1 | 05-31-2007 5:40 PM |
| Is this possible? Login to remote site using cURL, then pass credentials to browser. | JDS | PHP | 1 | 05-20-2007 5:33 PM |
| Featured Websites | ||||
|