PHPStorm http client request code editor queries against built-in web server

When I do use the HTTP client in PhpStorm code editor | PhpStorm (jetbrains.com)

to query the Built-in web server | PhpStorm (jetbrains.com)

available at the default port 63342 I do get following snippet as a result

http://localhost:63342/rest/api/v1/test.php

HTTP/1.1 401 Unauthorized
content-type: text/html
WWW-Authenticate: Basic realm="Android Studio"
content-length: 117
date: Mon, 27 Dec 2021 06:28:01 GMT
x-frame-options: SameOrigin
X-Content-Type-Options: nosniff
x-xss-protection: 1; mode=block

<!doctype html><title>401 Unauthorized</title><h1 style="text-align: center">401 Unauthorized</h1><p>Unauthorized</p>
Response file saved.
> 2021-12-27T082801.401.html

Response code: 401 (Unauthorized); Time: 10ms; Content length: 117 bytes

So my question is how to authenticate as there are no settings to setup the authentication in Built-in web server | PhpStorm (jetbrains.com) #configuring-built-in-web-server? Andor should I take place totally different approach on testing my web services?

1 comment
Comment actions Permalink

As far as I know, it is not possible to configure auth in a Built-in server and there are no settings apart from the "Allow unsigned requests".
However, I wonder would you need to query REST in a built-in Web-server, could you please tell more about your scenario?

0

Please sign in to leave a comment.