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 8841429
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 14, 20262026-06-14T10:42:55+00:00 2026-06-14T10:42:55+00:00

I have two different servers, and I need to send post data from one

  • 0

I have two different servers, and I need to send post data from one server to another. But there are some issues that I’ll describe below. First, let me describe them:

  • First server’s using Apache + PHP, running on Linux.
  • Second server’s using IIS, running on Windows. PHP is installed.

Now, here’s what I’m trying to do:

  • On my first server, user fills a form and submits it to a file in the same server.
  • In that file, I’ll process the data filled by the user and redirect my user to a page on my second server. This redirection has to go with the result of my data processing as a POST request.
  • Still on my seconds server, my user will finish entering his credit card information. Then, I’ll process the payment.
  • After my payment’s done processing (on my IIS server), I redirect my user back to another file in my first server, with more POST data (results of payment processing).

I don’t really know, though, how to redirect my user without ‘echoing’ a form and submitting it again.

I’ve done a lot of reading on the subject, and I managed to make my apache send post data using cURL or even using stream_context_create and stream_get_contents, and retrieve the result. What I want to do, though, is redirect my user along with the post data, instead of dispatching a request and displaying the result.

This is not a duplicate of this question, for my files are not in the same server, as q0987‘s were, making it impossible to store my data in the user’s session.

I also realize I can’t use header functions to make requests, as the header functions only creates response headers.

I don’t have enough privileges to install any libraries on the IIS server (like cURL/libcurl). I can’t process the payment on my first server, seeing only the IIS is allowed to access the VISAnet libraries. I also can’t put it all on my IIS.

I’m trying to accomplish that with PHP, but I don’t even know if what I’m trying to do is possible.

I don’t want to write down and submit forms, as it messes up my user’s history (and the back button).

  • 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-06-14T10:42:57+00:00Added an answer on June 14, 2026 at 10:42 am

    You can’t use POST verb for redirecting.
    I think your problem could be solved with cross-server interaction:

    server-1 receives data
    server-1 sends data to server-2 and server-2 responds some associated id with that data
    server-1 redirects user to server-2 with id in redirect uri query
    server-2 receives user's GET request (id is stored in uri query).
    server-2 receives data with given id
    viola - server-2 knows what server-1 sent to it
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I need to send some files from different machines to only one Server. As
I have two different arrays, one with strings and another with ints. I want
I need to send data from an IIS web server A to an Apache
I have two tables on different servers, and I'd like some help finding an
I have two different servers and a script like this: echo <div style=\some style\>whatever</div>;
I have to log into Linux servers from different customers and use there essential
I have two websites on two different servers. When I print the following on
I have the exact same html sitting on two different servers. Both pages call
I have apache httpd that I want to proxy to two different tomcat servers.
I have a C structures in two different machines - server and clients. For

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.