Category Archives: Unix
Curl command line encoding of query parameters for an HTTP PUT
[Note: I originally posted this problem/solution to Stackoverflow.com] Problem: I have multiple query parameters that I want to send in an HTTP PUT operation using curl. How do I encode the query parameters? Example:
1 |
$ curl -X PUT http://example.com/resource/1?param1=value%201¶m2=value2 |
If ‘value 1’ contains spaces … Continue reading
Recent Comments