# Simple http api usernames/password?

**URL:** https://forum.cloverdx.com/t/simple-http-api-usernames-password/1212
**Category:** CloverDX Platform
**Created:** [April 29, 2013, 12:00am UTC](https://forum.cloverdx.com/t/simple-http-api-usernames-password/1212 "2013-04-29T00:00:00Z")
**Posts on this page:** 6
**Page:** 1

<div class="post-metadata">

### Author: ![ktm990](https://avatars.discourse-cdn.com/v4/letter/k/e19adc/32.png) [@ktm990](https://forum.cloverdx.com/u/ktm990)
#### Post date: [April 29, 2013, 12:00am UTC](https://forum.cloverdx.com/t/simple-http-api-usernames-password/1212/1 "2013-04-29T00:00:00Z")

</div>

Hi Guys,

Hoping you can help me out.  
I am attempting to use simple http api in a scripted workflow environment to start/monitor graphs. Problem is the username/password form pops up and halts the flow. Not quite sure how to work around? I think I can turn global security off that will disable but not sure thats a good idea. Is there a way to embed/pass the username/password requests from clover etl server in the http api url request? Any help much appreciated.

Thanks, K.

---

<div class="post-metadata">

### Author: ![David\_Hlidek](https://avatars.discourse-cdn.com/v4/letter/d/58f4c7/32.png) [@David\_Hlidek](https://forum.cloverdx.com/u/David_Hlidek)
#### Post date: [April 29, 2013, 7:56am UTC](https://forum.cloverdx.com/t/simple-http-api-usernames-password/1212/2 "2013-04-29T07:56:51Z")

</div>

Hi K.,

Can you please be more specific about where your problem appears?

\* You are accessing SOAP/launch service on CloverETL Server?  
\* You are using HttpConnector/WebServiceClient components?  
\* ?

Thank you.

---

<div class="post-metadata">

### Author: ![ktm990](https://avatars.discourse-cdn.com/v4/letter/k/e19adc/32.png) [@ktm990](https://forum.cloverdx.com/u/ktm990)
#### Post date: [April 29, 2013, 3:43pm UTC](https://forum.cloverdx.com/t/simple-http-api-usernames-password/1212/3 "2013-04-29T15:43:06Z")

</div>

Hi There,

Thanks for the reply, let me try and clear this up.  
I am using Clover ETL Server.  
I am making an HTTP API request to execute a ‘Operation graph\_run’.  
[http://doc.cloveretl.com/documentation/ … p-api.html](http://doc.cloveretl.com/documentation/UserGuide/index.jsp?topic=/com.cloveretl.server.docs/docs/simple-http-api.html)  
In this example I am calling a a graph run, example:  
[http://localhost:8080/clover/request\_pr … andbox=mva](http://localhost:8080/clover/request%5Fprocessor/graph%5Frun?graphID=graph/graphDBExecute.grf&sandbox=mva)

This all works fine as described in the docs, the problem is, the Clover ETL server(deployed on WLS) has basic http authentication so any http api requests to execute an Operation graph\_run results in a pop-up a basic authentication web form where you need to manually specify the username/password in order to proceed. As I am trying to use http-api requests within workflow this obviously halts the processing until human intervention. So I am trying to figure out a workaround and not sure of the best approach? Disabling any and all security on clover etl server not really an option.

Can the username/password be embedded in the URL requests for simple-http-api requests?

Thanks for your help. K.

---

<div class="post-metadata">

### Author: ![imriskal](https://avatars.discourse-cdn.com/v4/letter/i/b38774/32.png) [@imriskal](https://forum.cloverdx.com/u/imriskal)
#### Post date: [April 30, 2013, 12:15pm UTC](https://forum.cloverdx.com/t/simple-http-api-usernames-password/1212/4 "2013-04-30T12:15:52Z")

</div>

Hello,

As far as I know, all common http clients should handle basic http authentication without any problem. If user works with browser, he gets a login form to fill in credentials. But if user sends his requests using some script, his http client should manage authentication automatically. For example, this is the way for wget:

```auto
wget --user=$USER --password=$PASS -O ./$OUTPUT_FILE $REQUEST_URL

```

Credentials can not be a part of http request, it would be a serious security threat.

If the abovementioned does not help you, please, send me some information about the way you are using CloverETL Server HTTP API and generally about your task. Thank you.

Best regards,

---

<div class="post-metadata">

### Author: ![ktm990](https://avatars.discourse-cdn.com/v4/letter/k/e19adc/32.png) [@ktm990](https://forum.cloverdx.com/u/ktm990)
#### Post date: [May 1, 2013, 1:45am UTC](https://forum.cloverdx.com/t/simple-http-api-usernames-password/1212/5 "2013-05-01T01:45:36Z")

</div>

Hi Lubos,

Yes my thoughts exactly.

Bottom line, we are running a PHP based application on another server and would like php to handle and execute the clover simple-http-api request. So I need to get php to authenticate and then execute. Any help much appreciated.

Thanks, K

---

<div class="post-metadata">

### Author: ![imriskal](https://avatars.discourse-cdn.com/v4/letter/i/b38774/32.png) [@imriskal](https://forum.cloverdx.com/u/imriskal)
#### Post date: [May 2, 2013, 10:56am UTC](https://forum.cloverdx.com/t/simple-http-api-usernames-password/1212/6 "2013-05-02T10:56:47Z")

</div>

Hello again,

Did you try exec function with wget command?

[http://cz2.php.net/manual/en/function.exec.php](http://cz2.php.net/manual/en/function.exec.php)  
[http://stackoverflow.com/questions/2826 … parameters](http://stackoverflow.com/questions/2826044/how-to-call-a-bash-script-from-php-passing-parameters)

Best regards,
