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.

400 Error- Bad Request with c#


400 Error- Bad Request with c#

Does anyone know why a request with:


as the request URI and:


as the login URI and:

NetworkCredentials(APIKey + "%" + username, loginPassword)

as the Network Credentials with:

the request method = "GET" and

the request contentType = "application/atom+xml"

is returning a Server Error 400 BadRequest

with an error status of: ProtocolError

Any help will be greatly appreciated. Thanks.



Is there no one who can explain why the request URI:

is returning:

Server Error 400: BadRequest

claiming a ProtocolError of some sort????????????????????????????????


Problem solved......thanks a

Problem solved......thanks a lot "help" forum.


Glad to hear that you worked

Glad to hear that you worked out your problem.  Our apologies for not being able to get back to you before you resolved it yourself.  Our forum support is unfortunately not 24/7, typically we try to respond within 4 business hours but that is not always possible.



In the future, if you run into any problems like this, it is generally more helpful for troubleshooting purposes to see the XML of your request or the code making the request.  A 400 error, as our error code FAQ explains, is almost always related to the XML content of your request and not the URI or credentials.  Without the XML of the request, it is virtually impossible to find a cause for the error and assist developers in finding a solution.

Dave Berard
Senior Product Manager, Constant Contact
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