Solved

php post to asp.net from code behind

Posted on 2014-02-21
3
443 Views
Last Modified: 2014-03-20
Hello, I am using oscommerce as my store.  What I'm looking to do is, when my customer submits an order; I would like to submit a separate request from the php checkout to an asp.net page from code behind.  So basically, post the transaction data, and if approved, post again to a separate custom url of mine on the backend.   Could someone tell me the best way to do this with php?
0
Comment
Question by:jtmerch
  • 2
3 Comments
 
LVL 58

Expert Comment

by:Gary
ID: 39877811
cURL is the standard method of posting to an external URL. You can set it to wait for the response and then fire another cURL to your own URL when finished.
0
 
LVL 109

Accepted Solution

by:
Ray Paseur earned 500 total points
ID: 39877947
You can do this.  It will be necessary to modify or add a hook into the PHP checkout.  If you're not a skilled PHP programmer you almost certainly want to hire a professional to make these modifications.

There are two ways to make a POST-method request in PHP.  One is to use cURL and the other is fsockopen().  In either method, a URL-encoded request string is required.
0
 
LVL 109

Expert Comment

by:Ray Paseur
ID: 39943407
Wow, haven't heard from you for a month, then a bad grade?  What was wrong with the answer?  Please see the Experts-Exchange grading guidelines and then explain why you didn't engage in any dialog and why you marked the grade down.  Looking forward to understanding, ~Ray
http://support.experts-exchange.com/customer/portal/articles/481419
0

Featured Post

ScreenConnect 6.0 Free Trial

At ScreenConnect, partner feedback doesn't fall on deaf ears. We collected partner suggestions off of their virtual wish list and transformed them into one game-changing release: ScreenConnect 6.0. Explore all of the extras and enhancements for yourself!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

It was really hard time for me to get the understanding of Delegates in C#. I went through many websites and articles but I found them very clumsy. After going through those sites, I noted down the points in a easy way so here I am sharing that unde…
International Data Corporation (IDC) prognosticates that before the current the year gets over disbursing on IT framework products to be sent in cloud environs will be $37.1B.
Viewers will learn about if statements in Java and their use The if statement: The condition required to create an if statement: Variations of if statements: An example using if statements:
The viewer will learn how to count occurrences of each item in an array.

777 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question