Pass custom HTTP headers with a request

Stimulsoft Reports.WEB discussion
Post Reply
arysmyatov
Posts: 6
Joined: Mon May 14, 2018 9:35 am

Pass custom HTTP headers with a request

Post by arysmyatov »

Hi there! I develop with .NET Core and. Could I customize the generating Stimulsoft designer that I can pass custom HTTP headers with a request (e.g. security token or customerId) to the server during report saving?
Could you please suggest?
Thanks in adnvance
HighAley
Posts: 8431
Joined: Wed Jun 08, 2011 7:40 am
Location: Stimulsoft Office

Re: Pass custom HTTP headers with a request

Post by HighAley »

Hello.

Could you describe your scenario more detailed?
What do you want to do?
We will find a better solution for you.

Thank you.
arysmyatov
Posts: 6
Joined: Mon May 14, 2018 9:35 am

Re: Pass custom HTTP headers with a request

Post by arysmyatov »

Ok. I use this example: https://github.com/stimulsoft/Samples-A ... 20Designer

I need some data from the query headers (e.g. to identify the user or customer, create a call context) in this action at the designer controller:

public ActionResult SaveReport()
{
StiReport report = StiMvcDesigner.GetReportObject();

// Save the report template, for example to JSON string
string json = report.SaveToJsonString();

return StiMvcDesigner.SaveReportResult();
}


And save the json for the relevat user.
How can I do it?
arysmyatov
Posts: 6
Joined: Mon May 14, 2018 9:35 am

Re: Pass custom HTTP headers with a request

Post by arysmyatov »

HighAley wrote: Fri Aug 17, 2018 1:04 pm Hello.

Could you describe your scenario more detailed?
What do you want to do?
We will find a better solution for you.

Thank you.
Ok. I use this example: https://github.com/stimulsoft/Samples-A ... 20Designer

I need some data from the query headers (e.g. to identify the user or customer, create a call context) in this action at the designer controller:

Code: Select all

public ActionResult SaveReport()
{
StiReport report = StiMvcDesigner.GetReportObject();

// Save the report template, for example to JSON string
string json = report.SaveToJsonString();

return StiMvcDesigner.SaveReportResult();
}
And save the json for the relevat user.
How can I do it?
Lech Kulikowski
Posts: 6245
Joined: Tue Mar 20, 2018 5:34 am

Re: Pass custom HTTP headers with a request

Post by Lech Kulikowski »

Hello,

Unfortunately, at the current moment, it is not possible.

We have added this task in our to-do list.

Thank you.
Post Reply