开发者

Sending @reply in curl

开发者 https://www.devze.com 2022-12-25 13:55 出处:网络
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; cu

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

精彩评论

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