I am trying to work on the code in to make an HTTP call to a  Jasper report 
from Angular 6 code.

In .net there is HttpWebResponse and web client for making a http/rest call 
and add a header to the request, What module/service in Angular 6 can be 
used to do the same thing.


*.Net code for reference*














*HttpWebRequest request = WebRequest.Create(URL ADDRESS) 
request.Headers.Add(credentials)request.Method = "GET";request.ContentType 
= "text/xml"; HttpWebResponse response; using (response = 
request.GetResponse() as HttpWebResponse){ // Get the response stream 
StreamReader reader = new StreamReader(response.GetResponseStream(), 
Encoding.UTF8); StreamReader reader = new 
StreamReader(response.GetResponseStream()); results = reader.ReadToEnd();}*

-- 
You received this message because you are subscribed to the Google Groups 
"Angular and AngularJS discussion" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/angular.
For more options, visit https://groups.google.com/d/optout.

Reply via email to