Forum

HomeHomeCoreCoreGeneralGeneralExtending OWS to get at the Request.BodyExtending OWS to get at the Request.Body
Previous
 
Next
New Post
8/9/2018 3:05 AM
 

Hi All,

I have asked the question before about getting at the Body of a Request. This is because I need to be able to receive json that will be posted to my endpoint. The json is not assigned to any Form variable. This sort of thing seems to happen a lot with REST apis, especially when dealing with webhooks from payment processers and transacitonal email services

Unfortunatly there does not seem to be any way to achieve this in OWS at the moment. So I'm thinking of having an external plugin to do this.

A quick google shows code snippets like this where the body is read using Request,InoutStream


Dim strJSON = [String].Empty
context.Request.InputStream.Position = 0
Using inputStream = New StreamReader(context.Request.InputStream)
    strJSON = inputStream.ReadToEnd()
End Using


I am not a .NET developer so creating DLL's is beyond me. I can create a asp.net script page but how would I reference that in OWS


Any help is greatly apprfeciated


Tony

Previous
 
Next
HomeHomeCoreCoreGeneralGeneralExtending OWS to get at the Request.BodyExtending OWS to get at the Request.Body


 

New York, NY • Baltimore, MD • Vienna, VA • St. Louis, MO • Seattle, WA • info@openwebstudio.com

Bookmark & Share Bookmark and Share