mkuklis / backbone.service

Backbone service for non restful or semi restful apis
http://mkuklis.github.com/backbone.service
44 stars 3 forks source link

Data not being posted #6

Open kmaiorini82 opened 8 years ago

kmaiorini82 commented 8 years ago

For some reason I am not sending/posting any data. Believe I am using it correctly. Don't really see that much different but have to be doing something wrong! Code, entire index.html, below...

<!DOCTYPE html>

Test ``` ``` ```
```

The entry in my access logs is simply...

172.19.59.6 - - [18/Feb/2016:08:20:33 -0500] "POST /auth.php...

It should be...

172.19.59.6 - - [18/Feb/2016:08:13:52 -0500] "POST /auth.php?employee_id=test&password=t&group=test...

kmaiorini82 commented 8 years ago

Any update on this? Really at a loss on what is going on. I tried modifying my web service to ensure that it can handle json encoded data, which it does. I tried everything/anything I could find and no luck.

Please advise.

mkuklis commented 8 years ago

@kmaiorini82 sorry for not getting back to you sooner. It looks like you defined a POST request in your target but you are expecting to the lib to create a GET request? I added a working example based on your code here: https://github.com/mkuklis/backbone.service/blob/master/examples/index.html

Please let me know if this helps.