The Community is hosting an End of Summer sweepstakes! Participants must complete tasks to earn tickets that will enter them with a chance to win a free year of Constant Contact and other great prizes!*
*No Purchase Necessary. For Official Rules, visit here. Constant Contact’s End of Summer 2020 Sweepstakes ends on October, 20, 2020 at 11:50 PM EST.

IE dying on request.GetResponse()

Occasional Organizer

IE dying on request.GetResponse()

I'm having an issue where the following code is working perfect in Chrome and FF but is dying on the bold/italic line in IE.  No error is thrown that I can tell, I have a try catch block that is printing to a text file any errors that are thrown.   The address variable is "[username]/contacts.  The contentType is "application/atom+xml".  The requestMethod is "POST".  The data is XML as shown below the code.  One thing I feel I should mention is that the username is an email address.  I'm assuming that this should be URL encoded. 


Any help would be appreciated.


            HttpWebRequest request = (HttpWebRequest)WebRequest.Create(address);
            request.Credentials = CreateCredentialCache(address, authenticationData);
            request.Method = requestMethod;
            request.ContentType = contentType;
            request.PreAuthenticate = true;
            request.ContentLength = data.Length;
            Stream stream = request.GetRequestStream();
            stream.Write(data, 0, data.Length);
            Stream responseStream = Stream.Null;
 HttpWebResponse response = (HttpWebResponse)request.GetResponse();
                                                "Method {0}, response description: {1}", request.Method,

                if (response.StatusCode == HttpStatusCode.NoContent)
                    return Stream.Null;
                responseStream = response.GetResponseStream();
                MemoryStream memoryStream = ReadResponseStream(responseStream);
                return memoryStream;
            catch (Exception ex)
                Logging.LogError("GetResponseStream: " + ex.Message);
            return Stream.Null;



<entry xmlns="">
	<title type="text"></title>
	<summary type="text">Contact</summary>
	<content type="application/vnd.ctct+xml">
		<Contact xmlns="">
				<ContactList id="[username]/lists/37"/>
				<ContactList id="[username]/lists/39"/>



Developer Portal

View API documentation, code samples, get your API key.

Visit Page

Constant Contact 2020 End of Summer Community Sweepstakes!

The Constant Contact User Community is hosting a sweepstakes. The more you participate, the more chances you have to win! Read on to learn more...

Read More