<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Intergrate with Authorize.Net with a C Program in Integration and Testing</title>
    <link>https://community.developer.cybersource.com/t5/Integration-and-Testing/Intergrate-with-Authorize-Net-with-a-C-Program/m-p/28174#M14858</link>
    <description>&lt;P&gt;We need to send a credit card authoriztion from a C program running on a web server. There was not an example&amp;nbsp;for a C program, but&amp;nbsp;I have done this with other payment gateways that use the same method and have not had a problem. When I do it with Authorize.Net the SendRequest never returns. It does not time out and will run forever it I do not stop it. One time I let it run for 2 hours to see what would happen and nothing happened. I know that the request I am sending is good. I trapped it in the progam before it was sent, pasted into a web browser and it worked fine.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The first thing I do is get a connection to the server with the following command:&lt;/P&gt;&lt;P&gt;CHttpConnection* pServer = session.GetHttpConnection("&lt;A target="_blank" href="https://test.authorize.net"&gt;https://test.authorize.net&lt;/A&gt;/gateway/transact.dll", 443);&lt;/P&gt;&lt;P&gt;I do get a connection to the server, I have tried ports 80 and 8080 with no different results&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Then&amp;nbsp;I open a request to the server with the following command:&lt;/P&gt;&lt;P&gt;CHttpFile* pFile = pServer-&amp;gt;OpenRequest(CHttpConnection::HTTP_VERB_POST, "&amp;lt;my request&amp;gt;", NULL, 1, NULL, NULL, INTERNET_FLAG_SECURE | INTERNET_FLAG_NO_AUTO_REDIRECT | INTERNET_FLAG_EXISTING_CONNECT);&lt;/P&gt;&lt;P&gt;This commands returns successfully. I was not sure if I was suppose to POST or PUT here. I tried both with no different results. POST worked with other payment gateways.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Then I send the request with the following commands:&lt;/P&gt;&lt;P&gt;sprintf(header, "Content-Type: application/x-www-form-urlencoded");&lt;/P&gt;&lt;P&gt;pFile-&amp;gt;SendRequest(header, strlen(header), NULL, 0);&lt;/P&gt;&lt;P&gt;This is the last thing it does and just hangs at this point.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Any help on this would be appreciated.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Tue, 24 Jul 2012 08:51:35 GMT</pubDate>
    <dc:creator>rkriscka</dc:creator>
    <dc:date>2012-07-24T08:51:35Z</dc:date>
    <item>
      <title>Intergrate with Authorize.Net with a C Program</title>
      <link>https://community.developer.cybersource.com/t5/Integration-and-Testing/Intergrate-with-Authorize-Net-with-a-C-Program/m-p/28174#M14858</link>
      <description>&lt;P&gt;We need to send a credit card authoriztion from a C program running on a web server. There was not an example&amp;nbsp;for a C program, but&amp;nbsp;I have done this with other payment gateways that use the same method and have not had a problem. When I do it with Authorize.Net the SendRequest never returns. It does not time out and will run forever it I do not stop it. One time I let it run for 2 hours to see what would happen and nothing happened. I know that the request I am sending is good. I trapped it in the progam before it was sent, pasted into a web browser and it worked fine.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The first thing I do is get a connection to the server with the following command:&lt;/P&gt;&lt;P&gt;CHttpConnection* pServer = session.GetHttpConnection("&lt;A target="_blank" href="https://test.authorize.net"&gt;https://test.authorize.net&lt;/A&gt;/gateway/transact.dll", 443);&lt;/P&gt;&lt;P&gt;I do get a connection to the server, I have tried ports 80 and 8080 with no different results&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Then&amp;nbsp;I open a request to the server with the following command:&lt;/P&gt;&lt;P&gt;CHttpFile* pFile = pServer-&amp;gt;OpenRequest(CHttpConnection::HTTP_VERB_POST, "&amp;lt;my request&amp;gt;", NULL, 1, NULL, NULL, INTERNET_FLAG_SECURE | INTERNET_FLAG_NO_AUTO_REDIRECT | INTERNET_FLAG_EXISTING_CONNECT);&lt;/P&gt;&lt;P&gt;This commands returns successfully. I was not sure if I was suppose to POST or PUT here. I tried both with no different results. POST worked with other payment gateways.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Then I send the request with the following commands:&lt;/P&gt;&lt;P&gt;sprintf(header, "Content-Type: application/x-www-form-urlencoded");&lt;/P&gt;&lt;P&gt;pFile-&amp;gt;SendRequest(header, strlen(header), NULL, 0);&lt;/P&gt;&lt;P&gt;This is the last thing it does and just hangs at this point.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Any help on this would be appreciated.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 24 Jul 2012 08:51:35 GMT</pubDate>
      <guid>https://community.developer.cybersource.com/t5/Integration-and-Testing/Intergrate-with-Authorize-Net-with-a-C-Program/m-p/28174#M14858</guid>
      <dc:creator>rkriscka</dc:creator>
      <dc:date>2012-07-24T08:51:35Z</dc:date>
    </item>
    <item>
      <title>Re: Intergrate with Authorize.Net with a C Program</title>
      <link>https://community.developer.cybersource.com/t5/Integration-and-Testing/Intergrate-with-Authorize-Net-with-a-C-Program/m-p/28180#M14861</link>
      <description>&lt;P&gt;the sample I found have the post value send in the sendRequest and not in the openrequest&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A target="_blank" href="http://support.microsoft.com/default.aspx?scid=kb;EN-US;q165298"&gt;http://support.microsoft.com/default.aspx?scid=kb;EN-US;q165298&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;443 and POST.&lt;/P&gt;</description>
      <pubDate>Tue, 24 Jul 2012 11:37:10 GMT</pubDate>
      <guid>https://community.developer.cybersource.com/t5/Integration-and-Testing/Intergrate-with-Authorize-Net-with-a-C-Program/m-p/28180#M14861</guid>
      <dc:creator>RaynorC1emen7</dc:creator>
      <dc:date>2012-07-24T11:37:10Z</dc:date>
    </item>
    <item>
      <title>Re: Intergrate with Authorize.Net with a C Program</title>
      <link>https://community.developer.cybersource.com/t5/Integration-and-Testing/Intergrate-with-Authorize-Net-with-a-C-Program/m-p/28748#M15128</link>
      <description>&lt;P&gt;I rearranged everything as specified in the article with the same results. Everything is good until the sendRequest and it just hangs, I get no response back from Authorize.Net, not even an error. My client is getting anxious to get this working and I have two more ready to go with Authorize.Net as soon as I get this working. Any suggestions at all?&lt;/P&gt;</description>
      <pubDate>Mon, 13 Aug 2012 08:27:57 GMT</pubDate>
      <guid>https://community.developer.cybersource.com/t5/Integration-and-Testing/Intergrate-with-Authorize-Net-with-a-C-Program/m-p/28748#M15128</guid>
      <dc:creator>rkriscka</dc:creator>
      <dc:date>2012-08-13T08:27:57Z</dc:date>
    </item>
  </channel>
</rss>

