hankknight
asked on
Use wget instead of curl to submit attachment
This does exactly what I want it to:
How can I do exactly the same thing but with wget instead of cURL?
curl -X POST http://example.com/xyz -d '{"_id":"123", "_attachments":{"foo.txt":{"content_type":"text\/plain","data": "VGhpcyBpcyBhIGJhc2U2NCBlbmNvZGVkIHRleHQ="}}}' -H "Content-Type: application/json"
It submits "This is a base64 encoded text" as an attachment. How can I do exactly the same thing but with wget instead of cURL?
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.