Debugging SendGrid’s Parsing Incoming Messages

image.png

SendGrid has a nice feature available to it’s Silver Level Subscribers and above (currently $79/month) that let’s you have incoming message to a domain parsed and forwarded through a web service.  This is great if it works but if it does not debugging is tricky because the web service is running on your production server. Here are some steps to debug the service. Go to the URL:  http://requestb.in/ and then use the URL given to you as the email forwarding URL inside of the SendGrid Control panel. Then, send an email to your domain you want to parse (siliconvalley-codecamp.net in my case). Head back to the requestdb.in page and look at the request. Copy the headers into the fiddler compose request page, then the body … Continue Reading

Using Fiddler To Replay an AJAX (xmlhttp) Request

image.png

  The Problem I use to spend a lot of time writing throw away JavaScript code to test AJAX (XMLHttpRequest or Asynchronous JavaScript and XML) type requests to my hosted web services.  that is, on my ASP.NET server, I have services that look like the following (Microsoft ASP.NET MVC projects): [HttpPost] [NoCache] public JsonResult GetEmailByPerson(long addressBookEntryId, string existingEmailDetailIds, int? start, int? limit, bool? emailNotViewed = null, bool? emailNotDeleted = null, bool? forceDataToHtmlBody = false) { Utils.AuthorityLevel userAuthorityLevel = Utils.GetUserAuthorityLevel(); if (userAuthorityLevel == Utils.AuthorityLevel.None) { return Json(new { Message = … Continue Reading

Getting Fiddler to See you WCF Traffic

image.png

There are lots of articles on the internet if you search for WCF Fiddler however it’s not clear what the simplest path to follow is. For me, it turns out that just sprinkling a couple lines of code at the bottom of my windows forms app’s app.config file is all it took.  I got the tip from this post:  http://www.fiddler2.com/fiddler/help/hookup.asp The magic lines are as follows: <system.net>     <defaultProxy>       <proxy bypassonlocal="false" usesystemdefault="true" />     </defaultProxy>   </system.net> </configuration> That’s it!  Now, Fiddler just sees the traffic.  I’m a happy … Continue Reading

Follow

Get every new post delivered to your Inbox

Join other followers: