Skip to content

Ошибка в формировании POST запроса #31

@rblack

Description

@rblack

Для следующей формы формируется неправильный запрос.
Форма:

<!--<input type="hidden" name="md" value="move"/>-->
<!--<table>-->
    <!--<tbody>-->
    <!--<tr>-->
        <!--<td><input type="checkbox" name="test" value="12##48" checked="checked"/></td>-->
        <!--<td>Some value</td>-->
    <!--</tr>-->
    <!--<tr>-->
        <!--<td><input type="checkbox" name="test" value="15##25" checked="checked"/></td>-->
        <!--<td>Some value</td>-->
    <!--</tr>-->
    <!--<tr>-->
        <!--<th>-->
            <!--<button onclick="this.form.submit(); return false;">Submit</button>-->
        <!--</th>-->
    <!--</tr>-->
    <!--</tbody>-->
<!--</table>-->

Вывод grab.network.log:

[01] GET http://localhost/
[02] POST http://localhost/
POST request
test <CheckboxValues {'12##48', '15##25'} for checkboxes name='test'>
md move

grab_fail.py:

g.go('http://localhost/')
g.choose_form(xpath=".//form[@id='info-form']")
g.submit()

https://gist.github.com/rblack/7730597

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions