{"action":"created","issue":{"url":"https://api.github.com/repos/lorien/grab/issues/210","repository_url":"https://api.github.com/repos/lorien/grab","labels_url":"https://api.github.com/repos/lorien/grab/issues/210/labels{/name}","comments_url":"https://api.github.com/repos/lorien/grab/issues/210/comments","events_url":"https://api.github.com/repos/lorien/grab/issues/210/events","html_url":"https://github.com/lorien/grab/issues/210","id":197647747,"number":210,"title":"Ошибка: pycurl.error: (0, '') при попытке отправки формы","user":{"login":"InputError","id":23272814,"avatar_url":"https://avatars.githubusercontent.com/u/23272814?v=3","gravatar_id":"","url":"https://api.github.com/users/InputError","html_url":"https://github.com/InputError","followers_url":"https://api.github.com/users/InputError/followers","following_url":"https://api.github.com/users/InputError/following{/other_user}","gists_url":"https://api.github.com/users/InputError/gists{/gist_id}","starred_url":"https://api.github.com/users/InputError/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/InputError/subscriptions","organizations_url":"https://api.github.com/users/InputError/orgs","repos_url":"https://api.github.com/users/InputError/repos","events_url":"https://api.github.com/users/InputError/events{/privacy}","received_events_url":"https://api.github.com/users/InputError/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":6,"created_at":"2016-12-27T05:18:21Z","updated_at":"2016-12-30T15:31:07Z","closed_at":null,"body":"Имеется html с формой:\r\n```html\r\n<form enctype=\"multipart/form-data\" action=\"http://example.com/\" method=\"post\" accept-charset=\"UTF-8\">\r\n    <textarea name=\"body\">Beställa</textarea>\r\n    <input type=\"submit\" name=\"op\" value=\"Save\"/>\r\n</form>\r\n```\r\n\r\nЕсть который отправляет форму:\r\n```python\r\nfrom grab import Grab\r\n\r\ng = Grab()\r\ng.setup(debug=True)\r\n\r\ng.go('file:///C:/page.html') # тут вставьте путь до файла что указан выше\r\n\r\ng.doc.set_input('op', 'Save')\r\ng.doc.submit(submit_name='op')\r\n```\r\n\r\nПри отправке формы получаем ошибку:\r\n```\r\npycurl.error: (0, '')\r\n```\r\n\r\nНо если заменить внутри textarea код на другой, например вот так сделать в textarea:\r\n```html\r\n<textarea name=\"body\">123</textarea>\r\n```\r\nТо всё отправится нормально.\r\n\r\nКак это исправить?"},"comment":{"url":"https://api.github.com/repos/lorien/grab/issues/comments/269784439","html_url":"https://github.com/lorien/grab/issues/210#issuecomment-269784439","issue_url":"https://api.github.com/repos/lorien/grab/issues/210","id":269784439,"user":{"login":"lorien","id":35171,"avatar_url":"https://avatars.githubusercontent.com/u/35171?v=3","gravatar_id":"","url":"https://api.github.com/users/lorien","html_url":"https://github.com/lorien","followers_url":"https://api.github.com/users/lorien/followers","following_url":"https://api.github.com/users/lorien/following{/other_user}","gists_url":"https://api.github.com/users/lorien/gists{/gist_id}","starred_url":"https://api.github.com/users/lorien/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lorien/subscriptions","organizations_url":"https://api.github.com/users/lorien/orgs","repos_url":"https://api.github.com/users/lorien/repos","events_url":"https://api.github.com/users/lorien/events{/privacy}","received_events_url":"https://api.github.com/users/lorien/received_events","type":"User","site_admin":false},"created_at":"2016-12-30T15:31:07Z","updated_at":"2016-12-30T15:31:07Z","body":"Ещё раз. Мне нужен от вас ОДИН python-скрипт, внутри которого программно создаётся HTML файл и затем Grab обращается к нему. Не нужно смотреть версии pycurl и заниматься прочими вещами. Нужно сделать то, что я вам написал."}}
{"actor":{"display_login":"lorien"}}