473,889 Members | 1,462 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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 11267
Jon Kraft <jo*@jonux.co.u k> 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**********@re diffmail.com (R. Rajesh Jeba Anbiah) wrote:
Jon Kraft <jo*@jonux.co.u k> 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.secureserve r.com", 443);

http://uk.php.net/manual/en/transports.php

HTH;
JOn
Jul 16 '05 #3
Jon Kraft <jo*@jonux.co.u k> wrote in message news:<Xn******* *************** ****@130.133.1. 4>...
ng**********@re diffmail.com (R. Rajesh Jeba Anbiah) wrote:
Jon Kraft <jo*@jonux.co.u k> wrote:
ng**********@re diffmail.com (R. Rajesh Jeba Anbiah) wrote:
> Jon Kraft <jo*@jonux.co.u k> 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.secureserve r.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_pee r". 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 "certificat es", "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
3836
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 URL). I found a script that does this but requires cURL... and my hosting provider doesn't support it. Here is the snippet of the code that uses cURL functions ($data values are set before this from the purchase form):
1
2711
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 120 -d \"$data\" $authnet_url", $return_string); well the curl path is right /usr/local/bin/
0
2726
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 --enable-exif --enable-mbsting=all --with-gd --with-openssl --with-zlib-dir=/usr --with-zlib Everything goes well until the cURL should be configured. At that point, I will encounter an error like this:
1
1866
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 why is that a problem for PHP/Curl and not curl running in a shell? Thanks,
0
2347
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 after reinstalling Win XP, we used Office/Access 2003. When we try to process CC's we get a debug screen and Access itself crashes. However, the code still runs fine on Access/Office XP. The debug screen says: Method 'doSSLPost' of object...
0
2230
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: https://tps-test.voiceeclipse.com/cgi-bin/ve_xml.cgi Here's what I'm doing:
4
3539
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 Services http://www.cavalcade-of-coding.info Please respond to the group so others can share
4
3021
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 which calls this class. My class : **********************************libcurl_tools.h
1
2853
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 x_relay_url(return url is the page to where authorize .net will send the response) ,it is not able to come back to the page. I am using https://test.authorize.net/gateway/transact.dll for demo purpose, when i am submitting my transaction it is...
0
9962
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9809
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
11190
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
10442
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
9607
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
0
7150
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
1
4647
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
4251
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
3256
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.