Hello list,
I forgot to mention .. my content I want to edit will be urlencoded by
encoded=$(php -r "echo rawurlencode('$content');")
Regards
Andreas
2013/9/27 Andreas Mrvka <andreas.mrvka(a)gmail.com>
Hello list,
after I can successfully edit pages via API function I want to send
text content with pipe characters.
It works as long this characters is not at the beginning of a line.
(but most formulars work in that way)
Leading pipe " | " sign is ignored.
My script looks like:
content="content|pipe|content
|newline
|newline"
wget ..... --post-data "action=edit&title=pagename&text=$content&token=
The result looks like:
content|pile|content
newline
newline
Can anybody help me how to quote it?
Thanks
Andreas