# FAQ: How do I properly test my HTTP connection (including refresh logic)?

**URL:** <https://connective.celigo.com/t/faq-how-do-i-properly-test-my-http-connection-including-refresh-logic/1161>\
**Category:** Integrator.io\
**Tags:** connection, authentication, http, error-handling, salesforce\
**Created:** [March 24, 2021, 4:43pm UTC](https://connective.celigo.com/t/faq-how-do-i-properly-test-my-http-connection-including-refresh-logic/1161 "2021-03-24T16:43:47Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![stephenbrandt](https://sea1.discourse-cdn.com/flex001/user_avatar/connective.celigo.com/stephenbrandt/32/6891_2.png) [@stephenbrandt](https://connective.celigo.com/u/stephenbrandt)\
**Post date:** [March 24, 2021, 4:43pm UTC](https://connective.celigo.com/t/faq-how-do-i-properly-test-my-http-connection-including-refresh-logic/1161/1 "2021-03-24T16:43:47Z")

</div>

**Q.** I set up an [OAuth 2.0 type universal HTTP connection](https://docs.celigo.com/hc/en-us/articles/360039586072) to Salesforce, and it allows for refreshing the connection token after the original one has expired. I created the “refresh token body” as documented, and the connection is working correctly.

How can I be sure that the connection will continue to work once this token has expired? I can’t preview the actual refresh token request (with resolved handlebars) that will be sent. Is there a way to verify the connection, other than to leave it running for a while to see if it breaks?

**A.** One way to test whether the refresh request works is to enter any invalid token in the connection and then click **Test connection**.

First, make sure you configure **How to test this connection** with the [ping call](https://docs.celigo.com/hc/en-us/articles/360048237032#ping-requests). Whenever the initial attempt fails due to an invalid token, the refresh mechanism will run. Either it will succeed with an online connection, or you’ll be shown a specific error message and asked to try again.

 ![5301043caa20740200000001-b8ec78d3d38543b487927da9aa1dbc35.png](https://us1.discourse-cdn.com/flex001/uploads/celigo/original/2X/c/cebc492a38bc5c6de99c3c127295d533f3225c19.png)
