views:

36

answers:

2

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 postfields 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?

A: 

Use %40 instead of @

Anonymouse
A: 

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.

willwill