MCPcopy Index your code
hub / github.com/sqlmapproject/sqlmap / click_pairs

Method click_pairs

thirdparty/clientform/clientform.py:3163–3186  ·  view source on GitHub ↗

As for click_request_data, but returns a list of (key, value) pairs. You can use this list as an argument to ClientForm.urlencode. This is usually only useful if you're using httplib or urllib rather than urllib2 or ClientCookie. It may also be useful if you want to manual

(self, name=None, type=None, id=None,
                    nr=0, coord=(1,1),
                    label=None)

Source from the content-addressed store, hash-verified

3161 self._request_class)
3162
3163 def click_pairs(self, name=None, type=None, id=None,
3164 nr=0, coord=(1,1),
3165 label=None):
3166 """As for click_request_data, but returns a list of (key, value) pairs.
3167
3168 You can use this list as an argument to ClientForm.urlencode. This is
3169 usually only useful if you're using httplib or urllib rather than
3170 urllib2 or ClientCookie. It may also be useful if you want to manually
3171 tweak the keys and/or values, but this should not be necessary.
3172 Otherwise, use the click method.
3173
3174 Note that this method is only useful for forms of MIME type
3175 x-www-form-urlencoded. In particular, it does not return the
3176 information required for file upload. If you need file upload and are
3177 not using urllib2, use click_request_data.
3178
3179 Also note that Python 2.0's urllib.urlencode is slightly broken: it
3180 only accepts a mapping, not a sequence of pairs, as an argument. This
3181 messes up any ordering in the argument. Use ClientForm.urlencode
3182 instead.
3183
3184 """
3185 return self._click(name, type, id, label, nr, coord, "pairs",
3186 self._request_class)
3187
3188#---------------------------------------------------
3189

Callers

nothing calls this directly

Calls 1

_clickMethod · 0.95

Tested by

no test coverage detected