---
title: "How do I post form data using Curl?"
description: "!https://reqbin.com/req/c-sma2qrvp/curl-post-form-example"
date: 2023-08-11
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" 
```
