Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 1000407
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 16, 20262026-05-16T07:30:28+00:00 2026-05-16T07:30:28+00:00

I think that I am having a slow evening but I have a question

  • 0

I think that I am having a slow evening but I have a question regarding calling a URL as part of a controller call in a Zend Framework application.

I’m trying integrate an affiliate tracking application into my code, and the only way to register a commission is to call a url and pass the variables as either a POST or GET request, such as:

http://affilaite.myserver.com/sale.php?affiliate_id=1234&sale_amt=123.45

Now I want to call this on successful completion of the payment process, to update the affiliate software. I have a class that I use for other affiliate functions and I would like to be able to call a process() function to either POST the data or send it as a get request, e.g.

class CheckoutController extends Zend_Controller_Action{     
   ...       
   public function successAction(){

      //deals with response from payment provider first        

      //process the affiliate 
      $affliate = new Affiliate();
      $affiliate->process($affiliateId, $amount);

      ...
   }
}

Now I’m can’t think at this moment how I can make another post or get request as the controller is already going through the response lifecycle dealing with the payment process response.

How can I initiate another request to a different server halfway through this cycle? I’m not sure it’s even possible? Are there other ways that this can be achieved? There is a strong possibility that this function could be called many times during this function as it could be an array of affiliateids, rather than one.

Any help would be gratefully appreciated.

Thanks…

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-16T07:30:29+00:00Added an answer on May 16, 2026 at 7:30 am

    Use the zend-framework http client: http://framework.zend.com/manual/en/zend.http.client.advanced.html

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Having an issue here that I have tried everything I can think of but
I'm having a problem with logic programming, but I think that could be another
I'm having an issue that I think is simple to diagnose, but I can't
I'm having trouble with displaying image from db. I think that method for saving
Hi all I am having some problems that I think can be attributed to
I'm having a problem with a page that works fine by itself, but when
I have a large database of normalized order data that is becoming very slow
The problem im having is that I have a table that when a user
Having some problems with a piece of Jquery code, well that's where I think
I've been having this really annoying thing happen the past few days, that has

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.