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

The Archive Base Latest Questions

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

I have one application (checkpoint firewall) That sends formats a URL from variables to

  • 0

I have one application (checkpoint firewall)

That sends formats a URL from variables to form a request using the GET method

https://api.example.com/http/sendmsg?api_id=$APIID&user=
$USERNAME&password=$PASSWORD&to=$PHONE&text=$MESSAGE

how ever the website I want to use is a basic form using the POST method with the following source.

<html>
    <form method="post">
        Number:<input type="text" name="number"/><br/>
        Message:<textarea cols="40" rows="4" name="message"></textarea><br/>
        <input type="submit" value="send"/>
    </form>
</html>

I can change the format of the URL as much as I like with in reason, as you can possible guess this is sending SMS text messages.

is there any way to format a URL with the POST method, or create an intermediate webpage that can translate the request?

thank you

EDIT

So this was the kind of thing I had in mind

$number = ($_GET["number"]);
$message = ($_GET["message"]);

//for testing the get method echo variables on screen
echo("Number: " . $number . "<br />");
echo("Message: " . $message . "<br />");

//use curl to post variables to second website
$vars = "number-" . $number . "&message=2 . message;
$ch = curl_init( '10.43.23.53' );
curl_setopt( $ch, CURLOPT_POST, 1);
curl_setopt( $ch, CURLOPT_POSTFIELDS, $vars);
curl_setopt( $ch, CURLOPT_RETURNTRANSFER, 1);

$response = curl_exec( $ch );

print_r(curl_getinfo($ch));

this script is hosted by a web site so application A can use its GET method to supply the variables, and the script will re-post them to application B via post. However it does not work and I don’t get any result from the response ?

  • 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-14T13:42:11+00:00Added an answer on June 14, 2026 at 1:42 pm

    $apiKey = 'your-api-key-here';
    $user = 'your-username-here';
    $password = 'your-password-here';
    $number = isset($_POST['number']) ? $_POST['number'] : null;
    $message = isset($_GPOST['message']) ? $_POST['message'] : null;
    
    $url = sprintf('https://api.example.com/http/sendmsg?api_id=%s&user= %s&password=%s&to=%s&text=%s',
        $apiKey, $user, $password, urlencodee($message)
    );
    
    // validating message etc. left to OP
    
    $response = file_get_contents($url);
    

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

Sidebar

Related Questions

I have one application that prints messages from Test.exe in console .My java program
I have one grails application.In that I have one model class named Book. From
I have one application, in that i am using a datarow object like this.
I have one application using MVC3 w/ Razor that has been working perfectly working
i have one application which get the start and end time from the user
i have one application which is build using VB.NET now i required to add
The problem: we have one application that has a portion which is used by
I have one an application that generates .pcl files. Once generated they are saved
I have one application which is using 837P Muliple achema.Now i have another application
I have one application that I sold to multiple clients. Each client has his

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.