TECHNOLOGIES
FORUMS
JOBS
BOOKS
EVENTS
INTERVIEWS
Live
MORE
LEARN
Training
CAREER
MEMBERS
VIDEOS
NEWS
BLOGS
Sign Up
Login
No unread comment.
View All Comments
No unread message.
View All Messages
No unread notification.
View All Notifications
Answers
Post
An Article
A Blog
A News
A Video
An EBook
An Interview Question
Ask Question
Forums
Monthly Leaders
Forum guidelines
Rogério Santos
NA
2
603
WeebHook Read the Contents
Jun 1 2018 10:03 PM
Hi,
I would like to read the content sent to a WebHook URL, (requestb.in)...
In Windows Forms (C#) ?
An event is sent to a WebHook URL ( Raw ).
How to read this content ?
In my WebHook URL is:
https://requestinspector.com/p/01cegtqjr0ys6fkh5cr5pxych7
POST /inspect/01cegtqjr0yfdddh5cr5pxych7 HTTP/1.1 (WebHook URL)
requestinspector.com
Accept: */*
Accept-Encoding: gzip
User-Agent: Go-http-client/1.1
Content-Length: 360
Content-Type: application/x-www-form-urlencoded
Raw
event=message&token=ecdf5a21a5876gff547ac2710c9629a725b0aa420ca641&uid=554099124581&contact%5Buid%5D=5540996795303&contact%5Bname%5D=rogerio.+rocar&contact%5Btype%5D=user&message%5Bdtm%5D=1527429816&message%5Buid%5D=10F080AAEB968DDEACA2648216FFBE&message%5Bcuid%5D=&message%5Bdir%5D=i&message%5Btype%5D=chat&message%5Bbody%5D%5Btext%5D=ricardo&message%5Back%5D=3
Request (POST form)
For example:
POST https://requestb.in/xh9tvh (WebHook URL)
{
"event": "message",
"token": "abcd1234",
"contact[uid]": "34666123456",
"contact[name]": "Peter",
"contact[type]": "user",
"message[dtm]": 1487082303,
"message[uid]": "62397B58E3E0B",
"message[cuid]": "",
"message[dir]": "i",
"message[type]": "chat",
"message[body][text]": "Hey! How are you doing?",
"message[ack]": 3
}
I would like to read the content sent to WebHook URL (Raw) Event....I would like the "Raw"
How to do that ?
HttpWebRequest, HttpResponseMessage, HttpClient, ... ????
Thank you,
Rogério
Mail:
[email protected]
Reply
Answers (
0
)
.Net core application run by Time schedule
Syntax problem in C#