Solved

php post to asp.net from code behind

Posted on 2014-02-21
3
453 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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 110

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 110

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

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

Suggested Solutions

Nothing in an HTTP request can be trusted, including HTTP headers and form data.  A form token is a tool that can be used to guard against request forgeries (CSRF).  This article shows an improved approach to form tokens, making it more difficult to…
Since pre-biblical times, humans have sought ways to keep secrets, and share the secrets selectively.  This article explores the ways PHP can be used to hide and encrypt information.
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:
Video by: Mark
This lesson goes over how to construct ordered and unordered lists and how to create hyperlinks.

732 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