# Passing password from Base.getpass\\Base.winprompt to HTTP.request

**URL:** <https://discourse.julialang.org/t/passing-password-from-base-getpass-base-winprompt-to-http-request/53579>\
**Category:** General Usage\
**Tags:** https, http\
**Created:** [January 19, 2021, 3:06am UTC](https://discourse.julialang.org/t/passing-password-from-base-getpass-base-winprompt-to-http-request/53579 "2021-01-19T03:06:26Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![dannofthursday](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/dannofthursday/32/20596_2.png) [@dannofthursday](https://discourse.julialang.org/u/dannofthursday)\
**Post date:** [January 19, 2021, 4:16am UTC](https://discourse.julialang.org/t/passing-password-from-base-getpass-base-winprompt-to-http-request/53579/2 "2021-01-19T04:16:45Z")

</div>

UPDATE:

From [here](https://discourse.julialang.org/t/how-do-i-use-getpass/13880), I found that I can use the:

```julia
x = read(secretbuffer_from_getpass, string)

```

to get the password string.

So this solves the 1st question.

However, now I am getting the following error:

```julia
ERROR: LoadError: HTTP.ExceptionRequest.StatusError(401, "GET", "/rest/api/2/search", HTTP.Messages.Response:
"""
HTTP/1.1 401 Unauthorized
X-AREQUESTID: 1390x6515484x10
X-ANODEID: node2
X-XSS-Protection: 1; mode=block
X-Content-Type-Options: nosniff
X-Frame-Options: SAMEORIGIN
Content-Security-Policy: frame-ancestors 'self'
X-ASEN: SEN-10264611
X-Seraph-LoginReason: AUTHENTICATED_FAILED
WWW-Authenticate: OAuth realm= **************
Content-Type: text/html;charset=UTF-8
Transfer-Encoding: chunked
Date: Tue, 19 Jan 2021 04:10:18 GMT

```

Equivalent script in python works without any issues.

---

_[View the full topic](https://discourse.julialang.org/t/passing-password-from-base-getpass-base-winprompt-to-http-request/53579)._
