New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Request headers order from raw file #341

Closed
inquisb opened this Issue Jan 15, 2013 · 2 comments

Comments

Projects
None yet
2 participants
@inquisb
Member

inquisb commented Jan 15, 2013

When sqlmap is provided with a raw request from a file (-r switch) it should maintain the HTTP request headers order

@ghost ghost assigned stamparm Jan 15, 2013

@stamparm

This comment has been minimized.

Member

stamparm commented Jan 15, 2013

urllib2 module treats headers in a non-ordered fashion. Passing headers in (e.g.) OrderedDict mode will just rewrite it into dict type:

    def do_open(self, http_class, req):
        ...
        headers = dict(req.unredirected_hdrs)

@stamparm stamparm closed this Jan 15, 2013

@inquisb

This comment has been minimized.

Member

inquisb commented Jan 19, 2013

RFC 2616:

The order in which header fields with differing field names are received is not significant.

@ghost ghost assigned inquisb Jul 17, 2013

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment