Title: Syntax For Curl
Last modified: April 14, 2021

---

# Syntax For Curl

 *  Resolved [jaytech87](https://wordpress.org/support/users/jaytech87/)
 * (@jaytech87)
 * [5 years, 2 months ago](https://wordpress.org/support/topic/syntax-for-curl/)
 * Hi,
 * I’m running wordpress on a windows machine, I think that the syntax for sending
   the post request may not work on it. I’ve set up everything, however in the log
   all I see is this after submitting the form:
 *     ```
       [2021-04-14 19:50:35]: Ticket data:
       array (
         'name' => 'username',
         'email' => 'email@email.org',
         'phone' => '1234567895',
         'subject' => 'Testing',
         'message' => 'teststa',
         'ip' => '192.168.1.1',
         'attachments' => 
         array (
         ),
         'priority' => '2',
       )
       [2021-04-14 19:50:35]: Unable to create ticket:
       ```
   
 * The attempt doesn’t even show up in the osticket logs so I’m assuming it’s a 
   syntax issue while running the curl command.
 * I tried replicating the post in a command prompt and the syntax needed to be 
   in this form:
 * curl -d “{\”name\”:\”name\”, \”subject\”:\”This is a test\”, \”message\”:\”Help\”,\”
   ip\”:\”192.168.1.1\”, \”email\”:\”email@email.org\”}” -H “X-API-Key: XXXXXXXXXXXXXXXXXXXXXXXXX”
   [https://support.xyz.xyz/api/tickets.json](https://support.xyz.xyz/api/tickets.json)
 * I was able to create a ticket with that syntax. Any help would be greatly appreciated.

Viewing 1 replies (of 1 total)

 *  Plugin Author [SCAND](https://wordpress.org/support/users/scandltd/)
 * (@scandltd)
 * [5 years ago](https://wordpress.org/support/topic/syntax-for-curl/#post-14512102)
 * Hi.
 * Could you try to enable PHP error/warnings and see if there will be some error?
 * Best regards,
    SCAND team

Viewing 1 replies (of 1 total)

The topic ‘Syntax For Curl’ is closed to new replies.

 * ![](https://ps.w.org/scand-osticket-connector/assets/icon-256x256.png?rev=1599758)
 * [osTicket Connector](https://wordpress.org/plugins/scand-osticket-connector/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/scand-osticket-connector/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/scand-osticket-connector/)
 * [Active Topics](https://wordpress.org/support/plugin/scand-osticket-connector/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/scand-osticket-connector/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/scand-osticket-connector/reviews/)

 * 1 reply
 * 2 participants
 * Last reply from: [SCAND](https://wordpress.org/support/users/scandltd/)
 * Last activity: [5 years ago](https://wordpress.org/support/topic/syntax-for-curl/#post-14512102)
 * Status: resolved