GET and POST request through curl -


is possible send , post request using curl through linux terminal?

essentially, i'm trying understand these guys doing in tutorial don't understand how add additional parameters tutorial's example.

for instance, in tutorial (http://valeriobasile.github.io/candcapi/), use example of:

curl -d 'every man loves woman' 'http://gingerbeard.alwaysdata.net/candcapi/proxy.php/raw/pipeline?semantics=fol' 

it works want graphical representation of this. mention in example here.

"an entry point generate png image...  $candcapt/drg  "the url accepts same parameter pipeline." 

so tried send doesn't png file:

curl -d 'every man loves woman&pipeline' 'http://gingerbeard.alwaysdata.net/candcapi/proxy.php/raw/pipeline?semantics=drs&roles=verbnet' 

this breaks system.

curl -d 'every man loves woman' 'http://gingerbeard.alwaysdata.net/candcapi/proxy.php/raw/pipeline?semantics=drs&roles=verbnet%20%@d%2dbox' 

so question is, i'm not sure developers mean when url accepts same parameters , how add in? please let me know if have ideas, thanks.

edit 1 -

i tried adding drg instead of pipeline returns message saying, "not found"

curl -d 'every man loves woman' 'http://gingerbeard.alwaysdata.net/candcapi/proxy.php/drg?semantics=fol' 

i read through github documentation, , @ bottom describes how obtain graphical output:

the c&c/boxer api provides entry point generate png image of drg of given text:

$candcapi/drg

the url accepts same parameter pipeline , returns raw png file.

based on this, url should this:

http://gingerbeard.alwaysdata.net/candcapi/proxy.php/drg?semantics=fol 

using "same" parameters means whatever passed pipeline after question mark can passed drg web service.

modified anwser:

here's correct command same example:

curl -d 'every man loves woman' 'http://gingerbeard.alwaysdata.net/candcapi/drg?semantics=fol' 

and people beginners me, here's save png file:

curl -d 'every man loves woman' 'http://gingerbeard.alwaysdata.net/candcapi/drg?semantics=fol' >> image.png 

Comments

Popular posts from this blog

java - Run spring boot application error: Cannot instantiate interface org.springframework.context.ApplicationListener -

reactjs - React router and this.props.children - how to pass state to this.props.children -

Excel VBA "Microsoft Windows Common Controls 6.0 (SP6)" Location Changes -