如何在mojolicious中使用dot发送http get请求

时间:2013-05-04 00:22:09

标签: perl jquery-mobile get gps mojolicious

我使用jquerymobile在mojolicious框架中开发一个应用程序。它是关于每3秒更新一次到SQLite3数据库的GPS值。我尝试发送http Get请求来存储gps值,如/v_id/latitude/longitude/updatetime/update(路径在.pm文件中的mojolicious)。我发送的值是:/100/12.845323/77.4321455/3452687197281/update(在浏览器中给出的值)但它不存储任何内容并显示错误There is no route matching the Get request

当我尝试/100/12845323/774321455/3452687197281/update(没有点)时,它已成功更新。如何用http方法发送请求?

1 个答案:

答案 0 :(得分:0)

尝试使用接受点的放松占位符。或接受斜线的外卡持有者。看看mojolicious的截屏视频e2 http://mojocasts.com/e2