# שגיאת אימות גם כאשר הפרמטר הועבר בעת הפעלת ה-API של Data Explorer עם Curl

**URL:** <https://meta.discourse.org/t/validation-error-even-when-parameter-passed-while-running-data-explorer-api-with-curl/191341>\
**Category:** Product Support\
**Created:** [23 במאי,‏ 2021,‏ 6:34am UTC](https://meta.discourse.org/t/validation-error-even-when-parameter-passed-while-running-data-explorer-api-with-curl/191341 "2021-05-23T06:34:47Z")\
**Posts on this page:** 1\
**Showing post:** 6

<div class="post-metadata">

**Author:** ![Himanshu\_Singh](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/himanshu_singh/32/216438_2.png) [@Himanshu\_Singh](https://meta.discourse.org/u/Himanshu_Singh)\
**Post date:** [25 במאי,‏ 2021,‏ 5:48pm UTC](https://meta.discourse.org/t/validation-error-even-when-parameter-passed-while-running-data-explorer-api-with-curl/191341/6 "2021-05-25T17:48:17Z")

</div>

So I tried the code on terminal and I am getting the following error:

curl: (3) URL using bad/illegal format or missing URL  
curl: (3) URL using bad/illegal format or missing URL  
curl: (3) URL using bad/illegal format or missing URL  
curl: (3) URL using bad/illegal format or missing URL

root@Discourse-for-Prowess:~# curl -X POST “[https://domain/admin/plugins/explorer/queries/9/run](https://domain/admin/plugins/explorer/queries/9/run)”-H “Content-Type:multipart/form-data;”-H “Api-key:12345”-H “Api-username:username”-F ‘params={“user\_param”:“25”}’

I am able to run the query in [data explorer](https://meta.discourse.org/t/32566?silent=true) - [screenshot](https://gyazo.com/55175c0ae7a8f4e3e5d39fbd92bd75cd).

In the error logs I see the following:

```plaintext
ActionDispatch::Http::MimeNegotiation::InvalidType ("%{#context['com.opensymphony.xwork2.dispatcher.httpservletresponse'].addheader('90b3sfq9'" is not a valid MIME type)
lib/middleware/omniauth_bypass_middleware.rb:71:in `call'
lib/content_security_policy/middleware.rb:12:in `call'
lib/middleware/anonymous_cache.rb:353:in `call'
config/initializers/008-rack-cors.rb:25:in `call'
config/initializers/100-quiet_logger.rb:23:in `call'
config/initializers/100-silence_logger.rb:31:in `call'
lib/middleware/enforce_hostname.rb:23:in `call'
lib/middleware/request_tracker.rb:177:in `call'

```

Any suggestion would be helpful.

---

_[View the full topic](https://meta.discourse.org/t/validation-error-even-when-parameter-passed-while-running-data-explorer-api-with-curl/191341)._
