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

  • Home
  • SEARCH
  • 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 7713647
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 1, 20262026-06-01T01:55:30+00:00 2026-06-01T01:55:30+00:00

I want to set headers like post variable name and the value and send

  • 0

I want to set headers like post variable name and the value and send and expect response.
this is also a security question, assume I want to send post a form variables of which are action=”delete” and userid=100, and lets say, I have found a file which accepts ajax requests.

  • 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-01T01:55:31+00:00Added an answer on June 1, 2026 at 1:55 am

    curl is your friend! 🙂

    Say you’ve noticed an endpoint at example.org/process.php that a form is posting to. You can tailor you own custom request easily from the command line using curl.

    $ curl -X POST --data "action=delete&userid=100" example.org/process.php
    

    The --data or -D flag lets you pass arbitrary POST data just as an HTML form would. You can also set HTTP request headers with equal ease:

    $ curl --header "User-Agent: Mosaic" example.org/process.php
    

    You can see exactly what’s happening with the -v (for verbose) flag. For the first example above the output is:

    * About to connect() to example.org port 80 (#0)
    *   Trying 192.0.43.10... connected
    * Connected to example.org (192.0.43.10) port 80 (#0)
    > POST /process.php HTTP/1.1
    > User-Agent: curl/7.21.6 (x86_64-apple-darwin10.5.0) libcurl/7.21.6 OpenSSL/1.0.0d zlib/1.2.5 libidn/1.22
    > Host: example.org
    > Accept: */*
    > Content-Length: 24
    > Content-Type: application/x-www-form-urlencoded
    > 
    * HTTP 1.0, assume close after body
    < HTTP/1.0 302 Found
    < Location: http://www.iana.org/domains/example/
    < Server: BigIP
    * HTTP/1.0 connection set to keep alive!
    < Connection: Keep-Alive
    < Content-Length: 0
    < 
    * Connection #0 to host example.org left intact
    * Closing connection #0
    

    If you’re using a *NIX operating system including Mac OS X, you probably already have curl, just open a shell. If you work with Ruby at all, I highly recommend curb, a set of bindings for that language. Most PHP installations come with curl support, although the interface is pretty horrible. The docs are over at php.net.

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

Sidebar

Related Questions

I want to set the Expires header for all image/* and text/css . I'm
I want set interfaceOrientation in one UIView as LandscapeLeft and Portrait in other UIView.
i want set the visibility to itemized overlay in map view. if the zoom
I want set Listbox background to transparent but not working Is there any idea?
I want to set something up so that if an Account within my app
I want to set all the fields and labels on a VFP7 report to
I want to set a background image for a div, in a way that
I want to set a breakpoint on the __DoPostBack method, but it's a pain
I want to set up a Subversion server installation on Windows Server 2003 64-bit
I want to set some attributes just before the object is serialized, but as

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.