This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 245015 - "Test RESTful Web Services" should allow to set "Authorization" header
Summary: "Test RESTful Web Services" should allow to set "Authorization" header
Alias: None
Product: webservices
Classification: Unclassified
Component: REST (show other bugs)
Version: 8.0
Hardware: PC Windows 7
: P3 normal (vote)
Assignee: Milan Kuchtiak
Depends on:
Reported: 2014-06-12 13:32 UTC by terje7601
Modified: 2014-07-26 01:24 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Note You need to log in before you can comment on or make changes to this bug.
Description terje7601 2014-06-12 13:32:55 UTC
As the title says, I would like to be able to set an "Authorization" header to test secured web services.

I've tried adding this functionality myself in the generated code, but didn't really succeed (+ that I don't want to have to modify the generated code every time I want to test secured web services).

Just for your interest, some difficulties I encountered in my attempts, are:

1) getting an XMLHttpRequest with an Authorization header to work with CORS (see e.g. ).
2) the generated JavaScript makes all requests with "async" set to false, while Firefox requires async to be true when XMLHttpRequest.withCredentials is set to true (see )
Comment 1 Milan Kuchtiak 2014-07-04 13:10:58 UTC
The requirement is legitimate.
Comment 2 Milan Kuchtiak 2014-07-25 16:16:02 UTC

Comment 3 Quality Engineering 2014-07-26 01:24:36 UTC
Integrated into 'main-silver', will be available in build *201407260001* on (upload may still be in progress)

User: Milan Kuchtiak <>
Log: #245015: add ability to type custom HTTP Request Headers in REST Resources test client