PHP & Authorize.net w/o cURL?

Ask a Question related to PHP Development, Design and Development.

  1. #1

    Default 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

    -----BEGIN PGP PUBLIC KEY BLOCK-----
    Version: PGP 8.0 - not licensed for commercial use: [url]www.pgp.com[/url]
    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


    William C. White Guest

  2. Similar Questions and Discussions

    1. #40179 [NEW]: Compilation of cURL extension fails with cURL 7.16.0
      From: iain at workingsoftware dot com dot au Operating system: FreeBSD 6.0 PHP version: 5.2.0 PHP Bug Type: Compile Failure...
    2. Any one using Authorize.net?
      I'm trying to post an AIM transaction to Authorize.net. I get this error: The following errors have occurred. (92) The gateway no longer supports...
    3. How to authorize download?
      I am planning a website which reqires this feature: it allows registered users to upload and/or download files (like *.doc, *.ppt etc.) but not...
    4. Authorize.net and Curl Problem
      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...
    5. interfacing to Authorize.net using AIM method and cURL
      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...
  3. #2

    Default Re: PHP & Authorize.net w/o cURL?

    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):
    > [url]http://uk.php.net/fsockopen[/url]
    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
    R. Rajesh Jeba Anbiah Guest

  4. #3

    Default Re: PHP & Authorize.net w/o cURL?

    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):
    > [url]http://uk.php.net/fsockopen[/url]
    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
    R. Rajesh Jeba Anbiah Guest

  5. #4

    Default Re: PHP & Authorize.net w/o cURL?

    [email]ng4rrjanbiah@rediffmail.com[/email] (R. Rajesh Jeba Anbiah) wrote:
    > Jon Kraft <jon@jonux.co.uk> wrote:
    >>
    >> You could use fsockopen (search for "POST" in the User Contributed
    >> Notes): [url]http://uk.php.net/fsockopen[/url]
    >
    > 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);

    [url]http://uk.php.net/manual/en/transports.php[/url]

    HTH;
    JOn
    Jon Kraft Guest

  6. #5

    Default Re: PHP & Authorize.net w/o cURL?

    [email]ng4rrjanbiah@rediffmail.com[/email] (R. Rajesh Jeba Anbiah) wrote:
    > Jon Kraft <jon@jonux.co.uk> wrote:
    >>
    >> You could use fsockopen (search for "POST" in the User Contributed
    >> Notes): [url]http://uk.php.net/fsockopen[/url]
    >
    > 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);

    [url]http://uk.php.net/manual/en/transports.php[/url]

    HTH;
    JOn
    Jon Kraft Guest

  7. #6

    Default Re: PHP & Authorize.net w/o cURL?

    Jon Kraft <jon@jonux.co.uk> wrote in message news:<Xns93A563A3B8E73jonjonuxcouk@130.133.1.4>...
    > [email]ng4rrjanbiah@rediffmail.com[/email] (R. Rajesh Jeba Anbiah) wrote:
    >
    > > Jon Kraft <jon@jonux.co.uk> wrote:
    > >> [email]ng4rrjanbiah@rediffmail.com[/email] (R. Rajesh Jeba Anbiah) wrote:
    > >> > Jon Kraft <jon@jonux.co.uk> wrote:
    > >> >>
    > >> >> You could use fsockopen (search for "POST" in the User Contributed
    > >> >> Notes): [url]http://uk.php.net/fsockopen[/url]
    > >> >
    > >> > 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);
    > >>
    > >> [url]http://uk.php.net/manual/en/transports.php[/url]
    > >
    > > 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):
    > [url]http://uk.php.net/manual/en/ref.stream.php[/url]
    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
    R. Rajesh Jeba Anbiah Guest

  8. #7

    Default Re: PHP & Authorize.net w/o cURL?

    Jon Kraft <jon@jonux.co.uk> wrote in message news:<Xns93A563A3B8E73jonjonuxcouk@130.133.1.4>...
    > [email]ng4rrjanbiah@rediffmail.com[/email] (R. Rajesh Jeba Anbiah) wrote:
    >
    > > Jon Kraft <jon@jonux.co.uk> wrote:
    > >> [email]ng4rrjanbiah@rediffmail.com[/email] (R. Rajesh Jeba Anbiah) wrote:
    > >> > Jon Kraft <jon@jonux.co.uk> wrote:
    > >> >>
    > >> >> You could use fsockopen (search for "POST" in the User Contributed
    > >> >> Notes): [url]http://uk.php.net/fsockopen[/url]
    > >> >
    > >> > 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);
    > >>
    > >> [url]http://uk.php.net/manual/en/transports.php[/url]
    > >
    > > 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):
    > [url]http://uk.php.net/manual/en/ref.stream.php[/url]
    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
    R. Rajesh Jeba Anbiah Guest

Posting Permissions

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

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139