Porblem in using REST server |
[eluser]sheri.nust[/eluser]
Hi guys i have made REST client with curl library. From client , i have sent request to REST server, but don't know how to handle request on server side, On client , my code is bellow Code: <? And on server side , till now what i did is as follows Code: <? So kindly if anyone tell me how i handle request coming from client at server end using REST protocol.
[eluser]Phil Sturgeon[/eluser]
Have you had a look at my REST server code? I have already created a very sturdy REST client library but looks like I forgot to ever release the damn thing! I'll have to have another pop at them soon.
[eluser]sheri.nust[/eluser]
ya i have seen your server code, That was little confusing for me as i am new baby in CI, So i started using CRUL in PHP, Can u help me in writing server code using above CURL client, OR what you suggest to create REST webservice and what needs to be done on server side? Me stucked in my work. Thanks
[eluser]Phil Sturgeon[/eluser]
cURL is used to fetch content from and interactive with another server. You cannot create a REST service with cURL, only fetch. First you need to read up on how REST works, then look at some examples, then read my blog post on it. Although REST is simple, you should not be diving right into this with no understanding in how REST should work and hardly any CodeIgniter knowledge. Some research now will save you a LOT of time in development problems. ;-)
[eluser]sheri.nust[/eluser]
Opps.. Thanks for CURL advise.... Actually i am searching on REST creating web service in PHP, And getting with the time that how REST works. found very usefull links like http://www.slideshare.net/greghines/rest...el=1130184 http://www.slideshare.net/mgirouard/crea...s-in-php-5 |
Welcome Guest, Not a member yet? Register Sign In |