【发布时间】:2012-12-06 16:47:16
【问题描述】:
我的 ruby 代码中有以下语句
curlsyntax = "URL = "
restcall = 'http://myurl.com/File?schema=1.5&token=' + auth_token + '&product=http://myurl.com/Product/8283&form=json&productname=http://myurl.com/name/' + productname + '&priority=now'
call = curl + restcall
这给了我在我最终输出开头的一个引用,即“URL = http...但我实际上并不希望第一个引用显示它应该是 URL =”http
【问题讨论】:
-
您始终可以使用curb gem,而不必外部调用
curl。