Skip to main content
Published: December 22 2006, 2:37:00 PMUpdated: August 08 2022, 4:39:25 AM

How can I determine what type of notification I have received without looking into the body of the HTTP POST that I have received?

Summary

When you receive a notification event on your notification listener, you may want to forward the request to different handlers, based upon the notification event type. You would like to do this without reading or parsing the body of the HTTP POST.

Use the Headers in the notification HTTP POST to determine the event type. An example of the headers you will receive are shown below. Use the SOAPACTION header to determine the notification event type.

POST: /cgi/my_notifications.asp 
PROTOCOL: HTTP/1.1
HOST: my_hostname.com 
CONTENT_TYPE: text/xml; charset="utf-8" 
CONTENT_LENGTH: 1252 
SOAPACTION: HTTPS://developer.ebay.com/notification/EndOfAuction
 

Additional Resources

 

How well did this answer your question?
Answers others found helpful

Got thoughts? Click the feedback button – your insights help us improve!