FAQ
curl -X POST -d "Screen Shot 2015-11-15 at 6.09.58 pm.png"
http://localhost:8000/image/agentId/property --header
"Content-Type:image/png" --header "X-User-Agent:agent-php"

{"fileURL":"http://testing.com"}%


Attached picture is from DHC rest client. Also tried with Advanced rest
client same behaviour. Any pointers would be helpful.

--
You received this message because you are subscribed to the Google Groups "golang-nuts" group.
To unsubscribe from this group and stop receiving emails from it, send an email to golang-nuts+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Search Discussions

  • Dave Cheney at Nov 16, 2015 at 4:16 am
    At a blind guest your application is panicing, but the panic is being
    caught by the net/http package. This panic text will be visible in the
    stderr of your server process. Is there any output from your server ?
    On Monday, 16 November 2015 12:15:21 UTC+11, Balaji S wrote:

    curl -X POST -d "Screen Shot 2015-11-15 at 6.09.58 pm.png"
    http://localhost:8000/image/agentId/property --header
    "Content-Type:image/png" --header "X-User-Agent:agent-php"

    {"fileURL":"http://testing.com"}%


    Attached picture is from DHC rest client. Also tried with Advanced rest
    client same behaviour. Any pointers would be helpful.
    --
    You received this message because you are subscribed to the Google Groups "golang-nuts" group.
    To unsubscribe from this group and stop receiving emails from it, send an email to golang-nuts+unsubscribe@googlegroups.com.
    For more options, visit https://groups.google.com/d/optout.
  • Quoc-Viet Nguyen at Nov 16, 2015 at 3:38 pm
    Hi Balaji,

    The way you're sending data with curl is not correct.

    It should be curl -d @/path/to/file ...

    Regards
    On Nov 16, 2015 11:15, "Balaji S" wrote:

    curl -X POST -d "Screen Shot 2015-11-15 at 6.09.58 pm.png"
    http://localhost:8000/image/agentId/property --header
    "Content-Type:image/png" --header "X-User-Agent:agent-php"

    {"fileURL":"http://testing.com"}%


    Attached picture is from DHC rest client. Also tried with Advanced rest
    client same behaviour. Any pointers would be helpful.

    --
    You received this message because you are subscribed to the Google Groups
    "golang-nuts" group.
    To unsubscribe from this group and stop receiving emails from it, send an
    email to golang-nuts+unsubscribe@googlegroups.com.
    For more options, visit https://groups.google.com/d/optout.
    --
    You received this message because you are subscribed to the Google Groups "golang-nuts" group.
    To unsubscribe from this group and stop receiving emails from it, send an email to golang-nuts+unsubscribe@googlegroups.com.
    For more options, visit https://groups.google.com/d/optout.
  • Balaji S at Nov 16, 2015 at 8:04 am
    Have tried that also here is the SO link
    http://stackoverflow.com/questions/33722090/curl-works-but-none-of-the-rest-clients-with-go-sebserver
    On Mon, Nov 16, 2015 at 1:06 PM, Quoc-Viet Nguyen wrote:

    Hi Balaji,

    The way you're sending data with curl is not correct.

    It should be curl -d @/path/to/file ...

    Regards
    On Nov 16, 2015 11:15, "Balaji S" wrote:

    curl -X POST -d "Screen Shot 2015-11-15 at 6.09.58 pm.png"
    http://localhost:8000/image/agentId/property --header
    "Content-Type:image/png" --header "X-User-Agent:agent-php"

    {"fileURL":"http://testing.com"}%


    Attached picture is from DHC rest client. Also tried with Advanced rest
    client same behaviour. Any pointers would be helpful.

    --
    You received this message because you are subscribed to the Google Groups
    "golang-nuts" group.
    To unsubscribe from this group and stop receiving emails from it, send an
    email to golang-nuts+unsubscribe@googlegroups.com.
    For more options, visit https://groups.google.com/d/optout.
    --
    You received this message because you are subscribed to the Google Groups "golang-nuts" group.
    To unsubscribe from this group and stop receiving emails from it, send an email to golang-nuts+unsubscribe@googlegroups.com.
    For more options, visit https://groups.google.com/d/optout.

Related Discussions

Discussion Navigation
viewthread | post
Discussion Overview
groupgolang-nuts @
categoriesgo
postedNov 16, '15 at 1:15a
activeNov 16, '15 at 3:38p
posts4
users3
websitegolang.org

People

Translate

site design / logo © 2021 Grokbase