<html>
  <head>
    <meta content="text/html; charset=windows-1252"
      http-equiv="Content-Type">
  </head>
  <body bgcolor="#FFFFFF" text="#000000">
    Hello,<br>
    <br>
    can you look at network traffic (e.g., ngrep) or start kamailio with
    debug=3 in kamailio.cfg?<br>
    <br>
    You should see what is processed.<br>
    <br>
    At a quick look, you command line is using double quotes to wrap all
    the json string, which has other double quotes inside, so the shell
    will split that -- but maybe that is just an example posted here,
    not the actual command you used.<br>
    <br>
    Cheers,<br>
    Daniel<br>
    <br>
    <div class="moz-cite-prefix">On 23/09/15 11:46, Loïc Boissy wrote:<br>
    </div>
    <blockquote
cite="mid:CAHrc+6m-xgSCsGouz5+PvNowSj0uRq_7cgVTKHFtS4HkuQRRtg@mail.gmail.com"
      type="cite">
      <div dir="ltr">Hello
        <div><br clear="all">
          <div>
            <div style="font-family:Verdana;font-size:12px">I am trying
              to use JSONRPC-S Kamailio module to request for example <span
style="color:rgb(0,0,0);font-family:Helvetica,Arial;text-align:justify">the
                content of the location table. More generally, i would
                like to send RPC commands to my kamailio server using
                http request.</span></div>
            <div style="font-family:Verdana;font-size:12px"><span
                style="color:rgb(0,0,0);font-family:Helvetica,Arial;text-align:justify">For
                the moment, kamailio server always returns "400 bad
                request: corrupted packet".</span></div>
            <div style="font-family:Verdana;font-size:12px"><span
                style="color:rgb(0,0,0);font-family:Helvetica,Arial;text-align:justify"><br>
              </span></div>
            <div style="font-family:Verdana;font-size:12px"><span
                style="color:rgb(0,0,0);font-family:Helvetica,Arial;text-align:justify">To
                send my request, i use curl. For example:</span></div>
            <div style="font-family:Verdana;font-size:12px"><span
                style="color:rgb(0,0,0);font-family:Helvetica,Arial;text-align:justify"><br>
              </span></div>
            <div style=""><span style="text-align:justify"><font
                  face="Helvetica, Arial" color="#000000"><span
                    style="font-size:12px">curl --header 'Content-Type:
                    application/json' --data-binary "{"id": 1,
                    "jsonrpc": "2.0", "method": "ul.dump" }"</span></font></span><span
style="font-size:12px;color:rgb(0,0,0);font-family:Helvetica,Arial;text-align:justify"> <a
                  moz-do-not-send="true"
                  href="http://XXX.XXX.XXX.XXX/RPC/"><a class="moz-txt-link-freetext" href="http://XXX.XXX.XXX.XXX/RPC/">http://XXX.XXX.XXX.XXX/RPC/</a></a></span></div>
            <div style="font-family:Verdana;font-size:12px"><br>
            </div>
            <div style="font-family:Verdana;font-size:12px">Is there
              specific syntax to respect?</div>
            <div style="font-family:Verdana;font-size:12px">Kamailio
              server version is 4.3.2.<br>
            </div>
            <div style="font-family:Verdana;font-size:12px"><br>
            </div>
            <div style="font-family:Verdana;font-size:12px">Thank you in
              advance.</div>
          </div>
          <div>Loic BOISSY</div>
          <div><br>
          </div>
        </div>
      </div>
      <br>
      <div
style="color:rgb(34,34,34);font-family:arial,sans-serif;background-color:rgb(255,255,255)">
        <div style="font-size:12.8000001907349px"><span
style="font-weight:bold;color:rgb(84,84,84);line-height:18.2000007629395px">Visit</span><span
            style="color:rgb(84,84,84);line-height:18.2000007629395px"> Digigram
            at </span><span
style="font-weight:bold;color:rgb(84,84,84);line-height:18.2000007629395px">IBC2015</span><span
            style="color:rgb(84,84,84);line-height:18.2000007629395px"> at </span><span
style="font-weight:bold;color:rgb(84,84,84);line-height:18.2000007629395px">Stand
            8</span><span
            style="color:rgb(84,84,84);line-height:18.2000007629395px">.</span><span
style="font-weight:bold;color:rgb(84,84,84);line-height:18.2000007629395px">C51</span><span
            style="color:rgb(84,84,84);line-height:18.2000007629395px">, </span><span
style="font-weight:bold;color:rgb(84,84,84);line-height:18.2000007629395px">Sept</span><span
            style="color:rgb(84,84,84);line-height:18.2000007629395px">. </span><span
style="font-weight:bold;color:rgb(84,84,84);line-height:18.2000007629395px">11-15</span><span
            style="color:rgb(84,84,84);line-height:18.2000007629395px"> in </span><span
style="font-weight:bold;color:rgb(84,84,84);line-height:18.2000007629395px">Amsterda<wbr>m</span></div>
        <div style="font-size:12.8000001907349px"><font face="arial,
            sans-serif" color="#545454"><span
              style="line-height:18.2000007629395px">Register <a
                moz-do-not-send="true"
                href="http://www.ibc.org/page.cfm/link=478"
                style="color:rgb(17,85,204)" target="_blank">here</a> for
              your <b>FREE</b> pass with Digigram's Exhibitor Customer
              Code <b>4462</b></span></font></div>
      </div>
      <br>
      <fieldset class="mimeAttachmentHeader"></fieldset>
      <br>
      <pre wrap="">_______________________________________________
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list
<a class="moz-txt-link-abbreviated" href="mailto:sr-users@lists.sip-router.org">sr-users@lists.sip-router.org</a>
<a class="moz-txt-link-freetext" href="http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users">http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users</a>
</pre>
    </blockquote>
    <br>
    <pre class="moz-signature" cols="72">-- 
Daniel-Constantin Mierla
<a class="moz-txt-link-freetext" href="http://twitter.com/#!/miconda">http://twitter.com/#!/miconda</a> - <a class="moz-txt-link-freetext" href="http://www.linkedin.com/in/miconda">http://www.linkedin.com/in/miconda</a>
Book: SIP Routing With Kamailio - <a class="moz-txt-link-freetext" href="http://www.asipto.com">http://www.asipto.com</a>
Kamailio Advanced Training, Sep 28-30, 2015, in Berlin - <a class="moz-txt-link-freetext" href="http://asipto.com/u/kat">http://asipto.com/u/kat</a></pre>
  </body>
</html>