472,805 Members | 758 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 472,805 software developers and data experts.

PHP & Authorize.net w/o cURL?

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
Jul 16 '05 #1
3 11019
Jon Kraft <jo*@jonux.co.uk> wrote in message news:<Xn**************************@130.133.1.4>...
"William C. White" <u2***@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
Jul 16 '05 #2
ng**********@rediffmail.com (R. Rajesh Jeba Anbiah) wrote:
Jon Kraft <jo*@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
Jul 16 '05 #3
Jon Kraft <jo*@jonux.co.uk> wrote in message news:<Xn**************************@130.133.1.4>...
ng**********@rediffmail.com (R. Rajesh Jeba Anbiah) wrote:
Jon Kraft <jo*@jonux.co.uk> wrote:
ng**********@rediffmail.com (R. Rajesh Jeba Anbiah) wrote:
> Jon Kraft <jo*@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
Jul 16 '05 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: GluedToTheScreen | last post by:
I have a small PHP ecommerce site set up using Authorize.net's SIM (simple) interface. Working fine, but... I'd like to implement their AIM interface (so visitor's will never see the gateway's...
1
by: machodev | last post by:
Hello Friends, Getting a bit fuzzy on the Authorize.net and the Curl Integration. I have the script using the for the authorize.net Integration with the curl command exec("/usr/local/bin -m...
0
by: Ville Mattila | last post by:
Hello readers, I'm trying to install the latest PHP4 version from the scratch. The configure string is following: ../configure --with-apxs2=/usr/local/apache2/bin/apxs --with-mysql --with-curl...
1
by: ^blib^ | last post by:
Hello there, Could someone help me understand why Bug #34927 was marked as bogus? http://bugs.php.net/bug.php?id=34927 I understand that the target server is most likely misconfigured. But...
0
by: jayohare | last post by:
Hello, I have code within my DB application to process credit cards through authorize.net. Ive been using the same code for several years without a problem. I have an order entry computer and...
0
by: Damon | last post by:
I've been pulling my hair out over this and I need some expert help. I'm trying to access an XML API using cURL over SSL. Here's the API address: ...
4
by: Adrienne Boswell | last post by:
Does anyone know if it is possible to do recurring billing to Authorize.net using ASP Classic. I have no problem doing one time transactions. -- Adrienne Boswell at Home Arbpen Web Site Design...
4
by: Choi | last post by:
Good morning. I've tried to extract, using libcurl, web pages but it failed. There is no compilation error concerning the class I wrote, but the problems appear when I compile a main method...
1
by: vanitha05 | last post by:
hi everyone, In my application I am trying to get the response from authorize .net ,if i am using HTTP web response i am able to the response from site like approved or failed etc but if i mention...
2
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 2 August 2023 starting at 18:00 UK time (6PM UTC+1) and finishing at about 19:15 (7.15PM) The start time is equivalent to 19:00 (7PM) in Central...
0
by: erikbower65 | last post by:
Using CodiumAI's pr-agent is simple and powerful. Follow these steps: 1. Install CodiumAI CLI: Ensure Node.js is installed, then run 'npm install -g codiumai' in the terminal. 2. Connect to...
0
linyimin
by: linyimin | last post by:
Spring Startup Analyzer generates an interactive Spring application startup report that lets you understand what contributes to the application startup time and helps to optimize it. Support for...
0
by: kcodez | last post by:
As a H5 game development enthusiast, I recently wrote a very interesting little game - Toy Claw ((http://claw.kjeek.com/))。Here I will summarize and share the development experience here, and hope it...
14
DJRhino1175
by: DJRhino1175 | last post by:
When I run this code I get an error, its Run-time error# 424 Object required...This is my first attempt at doing something like this. I test the entire code and it worked until I added this - If...
0
by: Rina0 | last post by:
I am looking for a Python code to find the longest common subsequence of two strings. I found this blog post that describes the length of longest common subsequence problem and provides a solution in...
0
by: lllomh | last post by:
Define the method first this.state = { buttonBackgroundColor: 'green', isBlinking: false, // A new status is added to identify whether the button is blinking or not } autoStart=()=>{
0
by: Mushico | last post by:
How to calculate date of retirement from date of birth
2
by: DJRhino | last post by:
Was curious if anyone else was having this same issue or not.... I was just Up/Down graded to windows 11 and now my access combo boxes are not acting right. With win 10 I could start typing...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.