Link to home
Start Free TrialLog in
Avatar of hankknight
hankknightFlag for Canada

asked on

Use wget instead of curl to submit attachment

This does exactly what I want it to:
curl -X POST http://example.com/xyz -d '{"_id":"123", "_attachments":{"foo.txt":{"content_type":"text\/plain","data": "VGhpcyBpcyBhIGJhc2U2NCBlbmNvZGVkIHRleHQ="}}}' -H "Content-Type: application/json"

Open in new window

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
Avatar of Steve Bink
Steve Bink
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial