开发者

Sending @reply in curl

I'm writing an identi.ca client, and seems that @reply isn't working.

After investigation I found that @ prefix is used by curl to indicate file upload, and escaping with \@reply doesn't work; curl doesn't remove the \ at the front.

I also can't format the postfield开发者_如何学Cs to query string, as I need to send files on that request too.

Is there any method to send both @reply and file upload in the same request?


Use %40 instead of @


I tried \@ or urlencode("@reply") but it doesn't seems to work.

Finally, I found that adding a space into the front of the message works. status.net also chop extra space off automatically.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜