Jump to content
View in the app

A better way to browse. Learn more.

FMForums.com

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Syntax for CURL command

Featured Replies

Good morning.

I am trying to POST data to a system, and am experiencing difficulty in doing so.
In the snippet below, I am easily able to upload the name, sale_price etc, but when it comes to "images" I am unsure how to format the line - whether it be a single image or several images. Could somebody please point me in the right direction for the syntax of such a command?

 

curl -X POST https://example.com/site/products 
-u consumer_key:consumer_secret 
-H “Content-Type: application/json” 
-d ‘{
“name”: “Product name”,
“sale_price”: “25.50”,
“description”: “Body of text”,
“images”: [
{
“src”: “http://site.com/images/image1.jpg
},
{
“src”: “http://site.com/images/image2.jpg
}
]
}’


I have tried a number of versions (admittedly guesses), but could not crack it.
Any help is appreciated. :)

Greg

 

 

 

 

  • Author

Good morning Ocean West and Comment.

Thankyou for your replies - I will go through these pages and see what I can do.  :)

Greg

Create an account or sign in to comment

Important Information

By using this site, you agree to our Terms of Use.

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.