Vantuk
Newbie | Редактировать | Профиль | Сообщение | Цитировать | Сообщить модератору Всем привет! Никак не могу победить загрузку на Rghost.ru с авторизацией. Пробую так: <Server Name="rghost.ru" FileHost="1" Debug="0" Plugin="rghost" Authorize="1"> <Actions> <Action Type="get" Url="http://rghost.ru/profile/sign_in" RegExp='authenticity_token\":\"(.*?)\"' AssignVars="Token:2" /> <Action Type="login" Url="http://rghost.ru/profile/sign_in" PostParams="utf8=%E2%9C%93;authenticity_token=$(Token);user[email]=$(_LOGIN);user[password]=$(_PASSWORD);user[remember_me]=0;commit=%D0%92%D0%BE%D0%B9%D1%82%D0%B8" OnlyOnce="1"/> <Action Type="get" Url="http://rghost.ru/multiple/upload_host" RegExp='upload_host\":\"(.*?)\"([\s\S]*?)' AssignVars="ServerId:0"/> <Action Type="upload" Url="http://$(ServerId)/files" PostParams="authenticity_token=$(Token);file=%filename%;" RegExp='http://rghost\.(\w+)/(\d+)' AssignVars="File:1;"/> </Actions> <Result DownloadUrlTemplate="http://rghost.ru/$(File)" ImageUrlTemplate="$(Stub)" ThumbUrlTemplate="$(Stub)"/> </Server> Помогите плиз! | Всего записей: 3 | Зарегистр. 31-05-2013 | Отправлено: 20:13 31-05-2013 | Исправлено: Vantuk, 20:25 31-05-2013 |
|