Re: [sqlmap-users] --headers not adding Accept
Brought to you by:
inquisb
From: Brandon P. <bpe...@gm...> - 2015-02-02 20:30:11
|
Ah! Let me try. On Mon, Feb 2, 2015 at 2:29 PM, Miroslav Stampar <mir...@gm... > wrote: > --headers='Accept: application/json' is wrongly handled by Python :) > > For some strange reason, it messes the sys.argv when there is a whitespace > inside a single-quote formation: > > python -c "import sys; print sys.argv" --dummy="foo: bar" > ['-c', '--dummy=foo: bar'] > > python -c "import sys; print sys.argv" --dummy='foo: bar' > ['-c', "--dummy='foo:", "bar'"] > > Bye > > On Mon, Feb 2, 2015 at 6:33 PM, Miroslav Stampar < > mir...@gm...> wrote: > >> I'll take a look in couple of hours and let you know. >> >> Bye >> On Feb 1, 2015 4:27 PM, "Brandon Perry" <bpe...@gm...> >> wrote: >> >>> Hello! >>> >>> I am attempting to override the Accept header with Accept: >>> application/json (currently is text/html). >>> >>> When I use -r, I don't have a problem, but wanting to specify a single >>> command instead of command + request to reproduce. Using --headers='Accept: >>> application/json' doesn't override the default Accept: text/html. Is this >>> intended behavior? >>> >>> Thanks >>> >>> -- >>> http://volatile-minds.blogspot.com -- blog >>> http://www.volatileminds.net -- website >>> >>> >>> ------------------------------------------------------------------------------ >>> Dive into the World of Parallel Programming. The Go Parallel Website, >>> sponsored by Intel and developed in partnership with Slashdot Media, is >>> your >>> hub for all things parallel software development, from weekly thought >>> leadership blogs to news, videos, case studies, tutorials and more. Take >>> a >>> look and join the conversation now. http://goparallel.sourceforge.net/ >>> _______________________________________________ >>> sqlmap-users mailing list >>> sql...@li... >>> https://lists.sourceforge.net/lists/listinfo/sqlmap-users >>> >>> > > > -- > Miroslav Stampar > http://about.me/stamparm > -- http://volatile-minds.blogspot.com -- blog http://www.volatileminds.net -- website |