sofia-sip | source SIP User-Agent library | TCP library
kandi X-RAY | sofia-sip Summary
kandi X-RAY | sofia-sip Summary
Sofia-SIP is an open-source SIP User-Agent library, compliant with the IETF RFC3261 specification. It can be used as a building block for SIP client software for uses such as VoIP, IM, and many other real-time and person-to-person communication services. The primary target platform for Sofia-SIP is GNU/Linux. Sofia-SIP is based on a SIP stack developed at the Nokia Research Center. Sofia-SIP is licensed under the LGPL.
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
Currently covering the most popular Java, JavaScript and Python libraries. See a Sample of sofia-sip
sofia-sip Key Features
sofia-sip Examples and Code Snippets
Community Discussions
Trending Discussions on sofia-sip
QUESTION
How could i get the date when the request to server was firstly created by a client?
Client send GET/POST request to server -> On the server side I extract Date when the request was sent
There is a property in HttpContext.Request.Headers
called HeaderDate
but it's always empty in every request.
Here is a description of an exact header that I want to get on the server side.
P.S. I'm using ASP.NET Core 2.0
...ANSWER
Answered 2018-Mar-09 at 10:25Unless the network is very poor, it's likely the request was created no more than a second or two (at most) before it reached your server. How accurate do you want to be, exactly?
Anyway it's up to the client whether they send you any information like that. In fact the spec at https://www.w3.org/Protocols/rfc2616/rfc2616-sec14.html says
Clients SHOULD only send a Date header field in messages that include an entity-body, as in the case of the PUT and POST requests, and even then it is optional. A client without a clock MUST NOT send a Date header field in a request.
So in other words it's actually recommended not to send this header in many cases. A GET request will almost certainly never include it for instance, unless the client in question is going against the stated recommendation.
You're probably better off just using the time the request reached your server, and treating that as good-enough.
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install sofia-sip
sip-options, query using SIP OPTIONS method
sip-date, SIP date printer/parser
addrinfo (libsofia-sip-ua/su), resolve host names
localinfo (libsofia-sip-ua/su), prints information about local network interfaces
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page