{"action":"created","issue":{"url":"https://api.github.com/repos/hickford/MechanicalSoup/issues/49","repository_url":"https://api.github.com/repos/hickford/MechanicalSoup","labels_url":"https://api.github.com/repos/hickford/MechanicalSoup/issues/49/labels{/name}","comments_url":"https://api.github.com/repos/hickford/MechanicalSoup/issues/49/comments","events_url":"https://api.github.com/repos/hickford/MechanicalSoup/issues/49/events","html_url":"https://github.com/hickford/MechanicalSoup/issues/49","id":182944685,"number":49,"title":"form action without schema'ed ACTION fails with MissingSchema","user":{"login":"chadmiller","id":287758,"avatar_url":"https://avatars.githubusercontent.com/u/287758?v=3","gravatar_id":"","url":"https://api.github.com/users/chadmiller","html_url":"https://github.com/chadmiller","followers_url":"https://api.github.com/users/chadmiller/followers","following_url":"https://api.github.com/users/chadmiller/following{/other_user}","gists_url":"https://api.github.com/users/chadmiller/gists{/gist_id}","starred_url":"https://api.github.com/users/chadmiller/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/chadmiller/subscriptions","organizations_url":"https://api.github.com/users/chadmiller/orgs","repos_url":"https://api.github.com/users/chadmiller/repos","events_url":"https://api.github.com/users/chadmiller/events{/privacy}","received_events_url":"https://api.github.com/users/chadmiller/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2016-10-14T01:43:14Z","updated_at":"2016-10-14T13:02:16Z","closed_at":null,"body":"Used `requests` (and mechanicalsoup) to .get() a web page that has a form on it. The form tag looks like\r\n\r\n`<form action=\"/submit_uri\" method=\"post\">`\r\n\r\nI filled a part of the form, and then .submit()ed the form.\r\n\r\n```\r\n  File mechanicalsoup/browser.py\", line 114, in submit\r\n    request = self._prepare_request(form, url, **kwargs)\r\n  File \"mechanicalsoup/browser.py\", line 109, in _prepare_request\r\n    return self.session.prepare_request(request)\r\n  File \"requests/sessions.py\", line 394, in prepare_request\r\n    hooks=merge_hooks(request.hooks, self.hooks),\r\n  File \"requests/models.py\", line 294, in prepare\r\n    self.prepare_url(url, params)\r\n  File \"requests/models.py\", line 354, in prepare_url\r\n    raise MissingSchema(error)\r\nrequests.exceptions.MissingSchema: Invalid URL '/submit_uri': No schema supplied. Perhaps you meant http:///submit_uri?\r\n```"},"comment":{"url":"https://api.github.com/repos/hickford/MechanicalSoup/issues/comments/253793145","html_url":"https://github.com/hickford/MechanicalSoup/issues/49#issuecomment-253793145","issue_url":"https://api.github.com/repos/hickford/MechanicalSoup/issues/49","id":253793145,"user":{"login":"chadmiller","id":287758,"avatar_url":"https://avatars.githubusercontent.com/u/287758?v=3","gravatar_id":"","url":"https://api.github.com/users/chadmiller","html_url":"https://github.com/chadmiller","followers_url":"https://api.github.com/users/chadmiller/followers","following_url":"https://api.github.com/users/chadmiller/following{/other_user}","gists_url":"https://api.github.com/users/chadmiller/gists{/gist_id}","starred_url":"https://api.github.com/users/chadmiller/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/chadmiller/subscriptions","organizations_url":"https://api.github.com/users/chadmiller/orgs","repos_url":"https://api.github.com/users/chadmiller/repos","events_url":"https://api.github.com/users/chadmiller/events{/privacy}","received_events_url":"https://api.github.com/users/chadmiller/received_events","type":"User","site_admin":false},"created_at":"2016-10-14T13:02:16Z","updated_at":"2016-10-14T13:02:16Z","body":"Probably, should depend on \r\n\r\nhttps://pypi.python.org/pypi/rfc3987\r\n\r\nand use its `parse(first_url)` and incrementally `resolve(discovered_web_page_url, current_url)`"}}
{"actor":{"display_login":"chadmiller"}}