Solved

php post to asp.net from code behind

Posted on 2014-02-21
3
435 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
Comment Utility
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 108

Accepted Solution

by:
Ray Paseur earned 500 total points
Comment Utility
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 108

Expert Comment

by:Ray Paseur
Comment Utility
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

IT, Stop Being Called Into Every Meeting

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

Join & Write a Comment

What is Node.js? Node.js is a server side scripting language much like PHP or ASP but is used to implement the complete package of HTTP webserver and application framework. The difference is that Node.js’s execution engine is asynchronous and event…
This article discusses how to create an extensible mechanism for linked drop downs.
The viewer will learn how to dynamically set the form action using jQuery.
The viewer will learn the benefit of using external CSS files and the relationship between class and ID selectors. Create your external css file by saving it as style.css then set up your style tags: (CODE) Reference the nav tag and set your prop…

771 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

Need Help in Real-Time?

Connect with top rated Experts

8 Experts available now in Live!

Get 1:1 Help Now