How can we remove content-length in the header of API

Tip / Sign in to post questions, reply, level up, and achieve exciting badges. Know more

cross mob
TaNg_4823266
Level 1
Level 1
First question asked First reply posted

Hello, I'm using cypress to test API and i'm new. I have 1 api to login and get access token. However, in the request, we don't need to send content-length in headers but when I execute it's always send the content-length and made my test failed because the response code is 404, could you please advise me how to remove it? Much appreciate for your response

0 Likes
1 Solution

Hi TaNg_1247796​:

Thanks for your checking. I'm trying to test restAPI, using cypress. I found out that I sent wrong URL and it got issue. Now it's fine.

View solution in original post

0 Likes
2 Replies
Murali_R
Moderator
Moderator
Moderator
250 sign-ins 250 replies posted 100 solutions authored

tang_4823266 What is it that you are trying to test? What is the application? Which is the platform?

0 Likes

Hi TaNg_1247796​:

Thanks for your checking. I'm trying to test restAPI, using cypress. I found out that I sent wrong URL and it got issue. Now it's fine.

0 Likes