Re: RESTful API using cherrypy

Stefan Krüger <[email protected]>
Newsgroups gmane.comp.python.cherrypy
Message-ID <[email protected]>
curl is a command line tool to send single requests.
so this is for the command prompt :-)

sunny greetings
stefan

On Thursday, July 21, 2016 at 10:02:00 AM UTC+2, [email protected] 
wrote:
>
> Hi all!
>
> I am trying to make a RESTful API using cherrypy. For the POST method 
> ,this is written on the tutorial's page:
>
> where am I supposed to type this curl command?Am I supposed to type this 
> in the python script?or the command prompt?
>
>
> Send a POST HTTP request to 127.0.0.1:8080/api/songs/ with cURL:
>
> curl -d title='Frozen' -d artist='Madonna' -X POST '127.0.0.1:8080/api/songs/'
>
>

-- 
You received this message because you are subscribed to the Google Groups "cherrypy-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to cherrypy-users+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/[email protected]
To post to this group, send email to cherrypy-users-/JYPxA39Uh5TLH3MbocFF+G/[email protected]
Visit this group at https://groups.google.com/group/cherrypy-users.
For more options, visit https://groups.google.com/d/optout.
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.