---
title: "💭 How do I post form data using Curl?"
description: "!https://reqbin.com/req/c-sma2qrvp/curl-post-form-example"
date: 2023-08-10
published: true
tags:
  - thought
template: link
---


<div class="embed-card embed-card-external">
  <a href="https://reqbin.com/req/c-sma2qrvp/curl-post-form-example" class="embed-card-link" target="_blank" rel="noopener noreferrer">
    <div class="embed-card-image">
      <img src="https://reqbin.com/static/img/logo96.png" alt="How do I post form data using Curl? — ReqBin is the most popular online API testing tool for REST, SOAP and HTTP APIs." loading="lazy">
    </div>
    <div class="embed-card-content">
      <div class="embed-card-title">How do I post form data using Curl?</div>
      <div class="embed-card-description">ReqBin is the most popular online API testing tool for REST, SOAP and HTTP APIs.</div>
      <div class="embed-card-meta">ReqBin &middot; reqbin.com</div>
    </div>
  </a>
</div>


How to pass form data with curl, give it the d.

``` bash
curl -X POST https://reqbin.com/echo/post/form
   -H "Content-Type: application/x-www-form-urlencoded" 
   -d "param1=value1&param2=value2" 
```

!!! note

    This post is a <a href="/thoughts/" class="wikilink" data-title="Thoughts" data-description="These are generally my thoughts on a web page or some sort of url, except a rare few don&#39;t have a link. These are dual published off of my..." data-date="2024-04-01">thought</a>. It's a short note that I make
    about someone else's content online <a href="/tags/thoughts/" class="hashtag-tag" data-tag="thoughts" data-count=2 data-reading-time=3 data-reading-time-text="3 minutes">#thoughts</a>
