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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 12, 20262026-05-12T17:19:19+00:00 2026-05-12T17:19:19+00:00

I had thought I would use curl for this but it looks like I

  • 0

I had thought I would use curl for this but it looks like I was mistaken. What I need to do is catch a post and do some database lookups for validation purposes and then post the validated data to a remote URL.

I have done this by populating an html form and submitting it using javascript but this has obvious flaws. I want to construct a post and send the browser along exactly as if they had posted a form to the remote url.

Am I missing something in the curl docs? What is a Good™ way to do this?

  • 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-12T17:19:20+00:00Added an answer on May 12, 2026 at 5:19 pm

    You can use curl for this.

    But you might have other issues to think about. Cookies, sessions etc are set when a browser physically posts to the another url. These might not be set when post from the server. You also should check out screen scraping questions on SO for more on this.

    Assuming this is not the case, you should be able to get the post, validate the fields, and repost using curl. There are many many examples of doing this.

    edit

    • post form to your server.php
    • process/validate fields in server.php
    • post validated parameters using curl to remote.service
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I thought I had resolved this but I obviously haven't and was hoping someone
I thought I had this figured out but it turns out I'm just deleting
Not sure if this is even possible but I would like to add a
I had thought I was clever. But in light of recent discoveries, I'm not
I had a wild thought today. I've been discovering that my users like my
So, thought I had this working last night, couldve sworn it. Now it no
I thought SLF4J would load org.slf4j.impl.StaticLoggerBinder via reflection but looking at the code in
I've been struggling with this for 2 days now so i thought i would
I came across http://api.imgur.com and thought that would be a usefull tool to use
Why would you use this syntax? var myVar = myArray.length && myArray || myObject;

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.