Re: [sqlmap-users] --headers not adding Accept
Brought to you by:
inquisb
From: Brandon P. <bpe...@gm...> - 2015-02-02 21:17:15
|
Trying now. On Mon, Feb 2, 2015 at 3:07 PM, Miroslav Stampar <mir...@gm... > wrote: > Fixed. Please update to the latest revision to have it patched. > > Bye > > On Mon, Feb 2, 2015 at 9:45 PM, Brandon Perry <bpe...@gm...> > wrote: > >> I think it has to do with Accept specifically. >> >> Passing --headers="X-Forwarded-For:192.168.1.31\nAccept:application/json" >> results in the X-Forwarded-For header being present, but Accept is still >> text/html. >> >> I am using --data as well, so it is a POST. >> >> This is an application I am working on privately in my free time, so >> willing to send any traffic information/commands off list. >> >> >> On Mon, Feb 2, 2015 at 2:30 PM, Brandon Perry <bpe...@gm...> >> wrote: >> >>> 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 >>> >> >> >> >> -- >> http://volatile-minds.blogspot.com -- blog >> http://www.volatileminds.net -- website >> > > > > -- > Miroslav Stampar > http://about.me/stamparm > -- http://volatile-minds.blogspot.com -- blog http://www.volatileminds.net -- website |