# Authorization problem

**URL:** <https://www.ruby-forum.com/t/authorization-problem/184775>\
**Category:** NGINX\
**Created:** [March 8, 2010, 2:26pm UTC](https://www.ruby-forum.com/t/authorization-problem/184775 "2010-03-08T14:26:56Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![chuj625](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/c/977dab/32.png) [@chuj625](https://www.ruby-forum.com/u/chuj625)\
**Post date:** [March 8, 2010, 2:26pm UTC](https://www.ruby-forum.com/t/authorization-problem/184775/1 "2010-03-08T14:26:56Z")

</div>

now i have successfully set the 'nginx.conf ’ like this:

```
29 auth_basic "LTP Web Service";
30 auth_basic_user_file ltpasswd;

```

and when visit the web site, it will pop a box ask for username and pwd.  
here is problem:

i want to communicate with the server by C++/JAVA or some other  
languages and don’t know how to put my username and pwd to the server.  
shall i add Authorization Option to the http header or write something  
in cookie?

Posted at Nginx Forum:

> **[authorization problem](https://forum.nginx.org/read.php?2,61427,61427#msg-61427)**
>
> now i have successfully set the 'nginx.conf ' like this: 29 auth\_basic "LTP Web Service"; 30 auth\_basic\_user\_file ltpasswd; and when visit the web site, it will pop a box ask for username and pwd. here is problem: i want to commun
