Skip to content
#

curl

Here are 1,248 public repositories matching this topic...

httpie
nhooey
nhooey commented Mar 6, 2020

It's not clear from the website's documentation, or the --help output, how to do the following equivalent curl task:

Post a raw JSON query to ElasticSearch:

curl \
    --header "Content-Type: application/json" \
    --request POST \
    --data '{ "_source": [ "restricted_countries.*" ], "query": { "match_all": {} }, "size": 1000 }' \
    'http://localhost:9200/_search'

T

marekstodolny
marekstodolny commented Jan 29, 2020

Description
Sending empty files in a multipart POST form is a proper use case due to web browsers supporting it.

I worked on a API layer using guzzle that had to work with an existing legacy codebase and trigger some actions (a proxy of some sort). There was a case where files had to be sent with empty content and would not work if you would omit them.

Example
_Currently no implem

insomnia
4n70w4
4n70w4 commented Mar 29, 2020

Is your feature request related to a problem? Please describe.
An external API does not always respond successfully. Server errors for example 50x or 429 Too Many Requests may occur. Manually pressing the send button while waiting for a successful response can be tedious.

Describe the solution you'd like
Be able to set the number of retries and the expected/unexpected status codes o

djsegal
djsegal commented Nov 2, 2018

Don't know if this is the correct place to suggest it, but a quick day/night flag might be interesting?

You already have their area code, so you would just need to check it against the current world map sunrise/sundown timer?

JD-TB
JD-TB commented Jan 24, 2020
curl --location --request POST 'http://example.com/api/test' \
--header 'Content-Type: multipart/form-data' \
--form 'file=@/C:/Users/Example/Pictures/index.png' \
--form 'name=test'

This is how you do multipart with http. This is for dio.

shahidhk
shahidhk commented Nov 1, 2018

Right now query in the nodejs api is just a string. we should support gql-parsed strings too, so that if they are exported elsewhere, it can be used directly.

import gql from 'graphql-tag';

export const GRAPHQL_QUERY=gql`
  query {
    something {
      anotherthing
    }
  }
`;
TheDiveO
TheDiveO commented Apr 26, 2019

In order to connect to a websocket service inside a pod in a minikube setup, I need to address the Kubernetes remote API which then demands a client certificate (~/.minikube/client.crt and ~/.minikube/client.key). I also have the server's CA ( ~/.minikube/ca.crt).

curl allows to use these certs with the --cert, --key, and --cacert options.

Does websocat also support specifyin

Improve this page

Add a description, image, and links to the curl topic page so that developers can more easily learn about it.

Curate this topic

Add this topic to your repo

To associate your repository with the curl topic, visit your repo's landing page and select "manage topics."

Learn more

You can’t perform that action at this time.