Comments (4)
hi what about --headers '[{"Authorization": "Placed Valid Token"}]' with ' around the value?
I assume value after space is recognised as different argument.
from apifuzzer.
Hi Kiss,
I tried different way of passing. Removing spaces, Single quotes, Doubles Quotes etc., But getting same error everytime.
from apifuzzer.
Hi,
I've added tests to cover this functionality, seems working. Maybe it is cauased by your environment.
Please do the following
- clone the master branch of this repository
- Install requirements: sudo pip3 install -r requirements.txt
- Install the test requirements: sudo pip3 install -r test/requirements_for_test.txt
- Start the test application in a dedicated terminal: python3 test/test_application.py
- Execute this: python3 fuzzer.py -h
- Copy the Auth header example from the help
- Execute this: python3 fuzzer.py --src_url https://raw.githubusercontent.com/swagger-api/swagger-samples/master/java/inflector-dropwizard-guice/src/main/swagger/swagger.yaml -u http://127.0.0.1:5000/ --headers '[{"Authorization": "SuperSecret"}, {"Auth2": "asd"}]'
- Copy the console output here
- If fails, please execute this: pytest -x --show-capture=stdout -vv -rP test while the test application still runs
from apifuzzer.
Thanks @KissPeter. It's working fine.
from apifuzzer.
Related Issues (20)
- read YAML api specifications HOT 3
- Field with the name (v1+themes|post|inherited) already exists in this container HOT 5
- Missing response, parsed_status_code and request_body are in reports HOT 7
- field with the name (....) already exists in this container HOT 4
- Questions HOT 1
- Copy/paste error in compile_base_url()
- Unexpected exception happened during fuzz test preparation: 'schemes' HOT 2
- --version not valid HOT 2
- APIFuzzer does not parse $ref in /paths HOT 6
- Path items with no variables prevent the fuzzer from running HOT 1
- Parameters on "Path Item" level is not getting accepted HOT 4
- Numbers in Unit XML wrong HOT 4
- Unexpected exception happened during fuzz test preparation: sequence item 0: expected str instance, list found.
- Report filenames start with -1 HOT 3
- Unexpected exception happened during fuzz test preparation HOT 1
- Payload generation from response data HOT 2
- APIFuzzer is failing for the CI integration HOT 4
- Space char at the headers argument HOT 4
- Api HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from apifuzzer.