0 Replies Latest reply on Jul 21, 2015 2:18 PM by vetash

    producteev POST /api/tasks does not work


      I try to create a task from command line (linux) with curl so i do exactly as example say i.e.:
      curl -v -X POST --data '{"task":{"title":"Submit the new iOS App !tomorrow","project":{"id":"51fc32c0fa46348b0b00000b"}}}' "https://www.producteev.com/api/tasks/" --header "Content-Type:application/json" --header "Authorization:Bearer 5Fm-kYL08PpPU3VkYzTbCNO3-Ldzk8-COtjp3_7Xmto"


      off course i use own project id an access token.
      But when i run this command i see this:


      * About to connect() to www.producteev.com port 443 (#0)

      *   Trying

      * connected

      * Connected to www.producteev.com ( port 443 (#0)

      * successfully set certificate verify locations:

      *   CAfile: none

        CApath: /etc/ssl/certs

      * SSLv3, TLS handshake, Client hello (1):

      * SSLv3, TLS handshake, Server hello (2):

      * SSLv3, TLS handshake, CERT (11):

      * SSLv3, TLS handshake, Server key exchange (12):

      * SSLv3, TLS handshake, Server finished (14):

      * SSLv3, TLS handshake, Client key exchange (16):

      * SSLv3, TLS change cipher, Client hello (1):

      * SSLv3, TLS handshake, Finished (20):

      * SSLv3, TLS change cipher, Client hello (1):

      * SSLv3, TLS handshake, Finished (20):

      * SSL connection using ECDHE-RSA-AES128-GCM-SHA256

      * Server certificate:

      *        subject: C=US; ST=California; L=Palo Alto; O=Jive Software, Inc.; CN=*.producteev.com

      *        start date: 2014-11-20 00:00:00 GMT

      *        expire date: 2015-11-25 12:00:00 GMT

      *        subjectAltName: www.producteev.com matched

      *        issuer: C=US; O=DigiCert Inc; OU=www.digicert.com; CN=DigiCert SHA2 High Assurance Server CA

      *        SSL certificate verify ok.

      > POST /api/tasks/ HTTP/1.1

      > User-Agent: curl/7.26.0

      > Host: www.producteev.com

      > Accept: */*

      > Content-Type:application/json

      > Authorization:Bearer<MY ACCESS TOKEN>

      > Content-Length: 97


      * upload completely sent off: 97 out of 97 bytes

      * additional stuff not fine transfer.c:1037: 0 0

      * HTTP 1.1 or later with persistent connection, pipelining supported

      < HTTP/1.1 405 Method Not Allowed

      < Allow: PUT

      < Cache-Control: no-cache

      < Content-Type: text/html; charset=UTF-8

      < Date: Tue, 21 Jul 2015 21:12:02 GMT

      < Server: Apache/2.2.22 (Ubuntu)

      < Vary: Authorization,Accept-Encoding

      < X-Powered-By: PHP/5.3.10-1ubuntu3.11

      < transfer-encoding: chunked

      < Connection: keep-alive


      <!DOCTYPE html>

      <!--[if lt IE 9 ]> <html class="ie8" lang="en_US"> <![endif]-->

      <!--[if IE 9 ]> <html class="ie9" lang="en_US"> <![endif]-->

      <!--[if (gt IE 9)|!(IE)]><!--> <html lang="en_US"> <!--<![endif]-->




                              <meta charset="utf-8">


                                      Task Management Software | Producteev by Jive


                                                                                                      <link rel="shortcut icon" href="https://dj2unr9f0jqhk.cloudfront.net/staticwebapp/version_23/favicon.ico" />

                              <!-- Always force latest IE rendering engine -->

                              <!-- <meta http-equiv="X-UA-Compatible" content="IE=9,chrome=1"> -->

                                                      <meta name="description" content="Producteev is the world’s best task management software for teams. It's more than an online to-do list and has helped hundreds of thousands of teams get work done faster with better results. Learn more."/>

                                                      <meta id="pdtv-base-dir" content="https://dj2unr9f0jqhk.cloudfront.net/staticwebapp/version_23/bundles/producteevweb"/>

                  <meta name="google-site-verification" content="lmAcrbb6OQQy8GCMRii03IpMlaavxK8F1n4tx_T29uE" />                        <meta name="viewport" content="initial-scale=1.0 maximum-scale = 1.0">

                              <link href="https://dj2unr9f0jqhk.cloudfront.net/staticwebapp/version_23/bundles/producteevweb/css/thirdparty.css" type="text/css" rel="stylesheet"  />

                  <link href="https://dj2unr9f0jqhk.cloudfront.net/staticwebapp/version_23/bundles/producteevweb/css/producteev.css" type="text/css" rel="stylesheet"  />


                  <body class="home">

          <!-- Content -->



      <body class="home info-page">




      <div id="header"  class="opaque">

          <div class="inner-col">

              <div class="logo-container">

                  <a href="/">




              <input type="checkbox" id="nav" />

              <label for="nav"></label>



              <ul class="menu-nav">

                  <li class="item">

                      <a href="/features" >




                  <li class="item">

                      <a href="/apps" >




                  <li class="item">

                      <a href="/customers" >




                  <li class="item">

                      <a href="/pricing"  >




                  <li class="item hidden-phone hidden-tablet">

                      <a href="#" data-toggle="dropdown" class="dropdown-toggle ">

                          Developers <i class="icon-caret-down"></i>


                      <ul class="dropdown-menu" role="menu">


                              <a href="/developers">Introduction</a>



                              <a href="/api/doc/">Documentation</a>



                              <a href="/developers/resources">Resources</a>



                              <a href="/settings/apps">My Apps</a>




                  <li class="item signup">

                      <a href="/signup" >

                          <span >Sign up</span>



                  <li class="item">

                      <a href="/login" >

                          Log in






                  <div class="container">

                  <div class="content">

                      <h2>Oops! Something wrong happened</h2>

                      <h3>Error 405.</h3>


                          The server returned an unexpected response and something went wrong during the process of your request. It could be only temporary, so try to refresh this page in a few minutes.



                          If you still encounter this issue please send us an email at <a href="mailto:contact@producteev.com">contact@producteev.com</a>. Thanks!




                      <h3>The Producteev Team.</h3>









          <!-- JavasScript files -->

                  <!--[if lt IE 9]>

                  <script src="https://dj2unr9f0jqhk.cloudfront.net/staticwebapp/version_23/bundles/producteevweb/js/browsersCompatibility/bind.js" type="text/javascript"></script>

                  <script src="https://dj2unr9f0jqhk.cloudfront.net/staticwebapp/version_23/bundles/producteevweb/js/browsersCompatibility/console.js" type="text/javascript"></script>


                      <!-- Google Tag Manager -->

      <noscript><iframe src="//www.googletagmanager.com/ns.html?id=GTM-MGC6T9"

      height="0" width="0" style="display:none;visibility:hidden"></iframe></noscript>


      new Date().getTime(),event:'gtm.js'});var f=d.getElementsByTagName(s)[0],




      <!-- End Google Tag Manager -->




      * Connection #0 to host www.producteev.com left intact

      * Closing connection #0

      * SSLv3, TLS alert, Client hello (1):