You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Custom h?ad?rs provid? you th? ability to k??p crucial information about th? r?qu?st or r?spons?, such as th? m?thod, URL, and body cont?nt. You can modify th? param?t?rs of th? HTTP r?qu?sts d?liv?r?d by your t?sts by manipulating with th?s? h?ad?rs, th?r?by around fir?wall r?strictions.
20
+
Custom headers provide you the ability to keep crucial information about the request or response, such as the method, URL, and body content. You can modify the parameters of the HTTP requests delivered by your tests by manipulating with these headers, thereby around firewall restrictions.
21
21
22
-
In this docum?ntation, w? will look at LambdaT?st CustomH?ad?rs, a `capability` that allows you to add custom h?ad?rs to your t?sts and bypass fir?wall r?strictions whil? p?rforming automat?d browser t?sting.
22
+
In this documentation, we will look at LambdaTest CustomHeaders, a `capability` that allows you to add custom headers to your tests and bypass firewall restrictions while performing automated browser testing.
23
23
24
24
25
25
## How to use CustomHeaders Capability on <BrandName />?
@@ -58,15 +58,15 @@ Custom headers serves different purposes for development and network communicati
58
58
X-Session-ID:1234567890
59
59
```
60
60
61
-
2.**Content Negotiation**: D?t?rmin?s how th? cli?nt and s?rv?r d?cid? on th? data format to ?xchang?. For instanc?, th? "Acc?pt" h?ad?r can sp?cify th? format (lik? JSON or XML) that th? cli?nt pr?f?rs for th? r?spons? data.
61
+
2.**Content Negotiation**: Determines how the client and server decide on the data format to exchange. For instance, the "Accept" header can specify the format (like JSON or XML) that the client prefers for the response data.
62
62
63
63
**Example**: `Accept` header specifies the client-preferred format of the response data.
64
64
65
65
```java
66
66
Accept: application/json
67
67
```
68
68
69
-
3.**Rate Limiting**: Custom h?ad?rs ar? oft?n us?d by APIs to provid? information about rat? limits. Th?y might s?nd h?ad?rs indicating how many r?qu?sts a cli?nt can mak? in a giv?n tim? p?riod, how many r?qu?sts th?y hav? l?ft, or wh?n th?y can mak? n?w r?qu?sts.
69
+
3.**Rate Limiting**: Custom headers are often used by APIs to provide information about rate limits. They might send headers indicating how many requests a client can make in a given time period, how many requests they have left, or when they can make new requests.
70
70
71
71
**Example**
72
72
@@ -76,55 +76,55 @@ X-RateLimit-Remaining: 56
76
76
X-RateLimit-Reset:1372700873
77
77
```
78
78
79
-
4.**Debugging and Performance Tracking**: Som? s?rvic?s includ? custom h?ad?rs in th?ir r?spons?s to provid? additional information that can help in d?bugging or p?rformanc? tracking. This can includ? s?rv?r v?rsion numb?rs, ?x?cution tim?s, or oth?r int?rnal d?tails.
79
+
4.**Debugging and Performance Tracking**: Some services include custom headers in their responses to provide additional information that can help in debugging or performance tracking. This can include server version numbers, execution times, or other internal details.
80
80
81
81
**Example**
82
82
83
83
```java
84
84
X-Session-ID:1234567890//custom header X-Session-ID to track user sessions.
85
85
```
86
86
87
-
5.**CORS (Cross-Origin Resource Sharing)**: Th? CORS standard us?s custom h?ad?rs to allow brows?rs and s?rv?rs to int?ract s?cur?ly with r?sourc?s from diff?r?nt origins. This includ?s h?ad?rs lik? "Acc?ss-Control-Allow-Origin" and "Acc?ss-Control-Allow-M?thods".
87
+
5.**CORS (Cross-Origin Resource Sharing)**: The CORS standard uses custom headers to allow browsers and servers to interact securely with resources from different origins. This includes headers like "Access-Control-Allow-Origin" and "Access-Control-Allow-Methods".
88
88
89
89
**Example**
90
90
91
91
```java
92
92
X-Session-ID:1234567890//custom header X-Session-ID to track user sessions.
93
93
```
94
94
95
-
6.**Custom Application Logic**: Custom h?ad?rs can also b? us?d to impl?m?nt sp?cific application-l?v?l logic. For instanc?, a custom h?ad?r could b? us?d to d?t?rmin? th? languag? of th? r?spons?, to ?nabl? or disabl? f?atur?s, or to sp?cify v?rsion numb?rs for API v?rsioning.
95
+
6.**Custom Application Logic**: Custom headers can also be used to implement specific application-level logic. For instance, a custom header could be used to determine the language of the response, to enable or disable features, or to specify version numbers for API versioning.
96
96
97
97
**Example**
98
98
99
99
```java
100
100
X-Session-ID:1234567890//custom header X-Session-ID to track user sessions.
101
101
```
102
102
103
-
7.**Bypassing Firewalls or Proxies**: In som? cas?s, custom h?ad?rs can b? us?d to bypass c?rtain n?twork r?strictions, such as fir?walls or proxy s?rv?rs. This should, how?v?r, b? don? r?sponsibly and in accordanc? with s?curity polici?s.
103
+
7.**Bypassing Firewalls or Proxies**: In some cases, custom headers can be used to bypass certain network restrictions, such as firewalls or proxy servers. This should, however, be done responsibly and in accordance with security policies.
104
104
105
105
**Example**
106
106
107
107
```java
108
108
X-Session-ID:1234567890//custom header X-Session-ID to track user sessions.
109
109
```
110
110
111
-
8.**Server Health and Status Information**: Som? applications us? custom h?ad?rs to provid? h?alth and status information about th? s?rv?r or application. This can b? us?d for monitoring and maintaining th? h?alth of th? syst?m.
111
+
8.**Server Health and Status Information**: Some applications use custom headers to provide health and status information about the server or application. This can be used for monitoring and maintaining the health of the system.
112
112
113
113
**Example**
114
114
115
115
```java
116
116
X-Session-ID:1234567890//custom header X-Session-ID to track user sessions.
117
117
```
118
118
119
-
9.**SEO Optimization**: Custom h?ad?rs lik? canonical and pagination h?ad?rs can b? us?d to guid? s?arch ?ngin?s and optimiz? SEO.
119
+
9.**SEO Optimization**: Custom headers like canonical and pagination headers can be used to guide search engines and optimize SEO.
120
120
121
121
**Example**
122
122
123
123
```java
124
124
X-Session-ID:1234567890//custom header X-Session-ID to track user sessions.
125
125
```
126
126
127
-
10.**A/B Testing**: Custom h?ad?rs can b? us?d to control or track A/B t?sting, wh?r? diff?r?nt v?rsions of a s?rvic? ar? t?st?d against ?ach oth?r to d?t?rmin? which p?rforms b?tt?r.
127
+
10.**A/B Testing**: Custom headers can be used to control or track A/B testing, where different versions of a service are tested against each other to determine which performs better.
import BrandName, { BRAND_URL } from '@site/src/component/BrandName';
22
22
23
-
Every modern software company knows the importance of robust testing. As the development environment becomes increasingly complex, the tools we use for testing have to evolve to keep up. But sometimes, obstacles arise that make testing more difficult—one such obstacle being corporate firewalls. Designed to keep networks secure, these firewalls can occasionally interfere with your testing process.
23
+
Every modern software company knows the importance of robust testing. As the development environment becomes increasingly complex, the tools we use for testing have to evolve to keep up. But sometimes, obstacles arise that make testing more difficult�one such obstacle being corporate firewalls. Designed to keep networks secure, these firewalls can occasionally interfere with your testing process.
24
24
25
25
However, the software testing industry is nothing if not innovative. One solution that's gaining traction is the use of custom headers to bypass firewalls. Specifically, we'll explore how <BrandName />'s customHeaders and customUrlFilters capabilities give developers precise control over network requests and firewall bypassing during testing.
26
26
27
-
In this docum?ntation, w? will look at LambdaT?st CustomH?ad?rs, a capability that allows you to add custom h?ad?rs to your t?sts and bypass fir?wall r?strictions whil? p?rforming automat?d browser t?sting.
27
+
In this documentation, we will look at LambdaTest CustomHeaders, a capability that allows you to add custom headers to your tests and bypass firewall restrictions while performing automated browser testing.
28
28
29
29
## About CustomHeaders
30
30
---
31
31
32
-
Custom h?ad?rs provid? you th? ability to k??p crucial information about th? r?qu?st or r?spons?, such as th? m?thod, URL, and body cont?nt. You can modify th? param?t?rs of th? HTTP r?qu?sts d?liv?r?d by your t?sts by manipulating with th?s? h?ad?rs, th?r?by around fir?wall r?strictions.
32
+
Custom headers provide you the ability to keep crucial information about the request or response, such as the method, URL, and body content. You can modify the parameters of the HTTP requests delivered by your tests by manipulating with these headers, thereby around firewall restrictions.
33
33
34
34
## How to use CustomHeaders Capability on <BrandName />?
35
35
---
@@ -63,15 +63,15 @@ Custom headers serves different purposes for web development and network communi
63
63
X-Session-ID:1234567890
64
64
```
65
65
66
-
2.**Content Negotiation**: D?t?rmin?s how th? cli?nt and s?rv?r d?cid? on th? data format to ?xchang?. For instanc?, th? "Acc?pt" h?ad?r can sp?cify th? format (lik? JSON or XML) that th? cli?nt pr?f?rs for th? r?spons? data.
66
+
2.**Content Negotiation**: Determines how the client and server decide on the data format to exchange. For instance, the "Accept" header can specify the format (like JSON or XML) that the client prefers for the response data.
67
67
68
68
**Example**: `Accept` header specifies the client-preferred format of the response data.
69
69
70
70
```java
71
71
Accept: application/json
72
72
```
73
73
74
-
3.**Rate Limiting**: Custom h?ad?rs ar? oft?n us?d by APIs to provid? information about rat? limits. Th?y might s?nd h?ad?rs indicating how many r?qu?sts a cli?nt can mak? in a giv?n tim? p?riod, how many r?qu?sts th?y hav? l?ft, or wh?n th?y can mak? n?w r?qu?sts.
74
+
3.**Rate Limiting**: Custom headers are often used by APIs to provide information about rate limits. They might send headers indicating how many requests a client can make in a given time period, how many requests they have left, or when they can make new requests.
75
75
76
76
**Example**
77
77
@@ -81,55 +81,55 @@ X-RateLimit-Remaining: 56
81
81
X-RateLimit-Reset:1372700873
82
82
```
83
83
84
-
4.**Debugging and Performance Tracking**: Som? s?rvic?s includ? custom h?ad?rs in th?ir r?spons?s to provid? additional information that can help in d?bugging or p?rformanc? tracking. This can includ? s?rv?r v?rsion numb?rs, ?x?cution tim?s, or oth?r int?rnal d?tails.
84
+
4.**Debugging and Performance Tracking**: Some services include custom headers in their responses to provide additional information that can help in debugging or performance tracking. This can include server version numbers, execution times, or other internal details.
85
85
86
86
**Example**
87
87
88
88
```java
89
89
X-Session-ID:1234567890//custom header X-Session-ID to track user sessions.
90
90
```
91
91
92
-
5.**CORS (Cross-Origin Resource Sharing)**: Th? CORS standard us?s custom h?ad?rs to allow brows?rs and s?rv?rs to int?ract s?cur?ly with r?sourc?s from diff?r?nt origins. This includ?s h?ad?rs lik? "Acc?ss-Control-Allow-Origin" and "Acc?ss-Control-Allow-M?thods".
92
+
5.**CORS (Cross-Origin Resource Sharing)**: The CORS standard uses custom headers to allow browsers and servers to interact securely with resources from different origins. This includes headers like "Access-Control-Allow-Origin" and "Access-Control-Allow-Methods".
93
93
94
94
**Example**
95
95
96
96
```java
97
97
X-Session-ID:1234567890//custom header X-Session-ID to track user sessions.
98
98
```
99
99
100
-
6.**Custom Application Logic**: Custom h?ad?rs can also b? us?d to impl?m?nt sp?cific application-l?v?l logic. For instanc?, a custom h?ad?r could b? us?d to d?t?rmin? th? languag? of th? r?spons?, to ?nabl? or disabl? f?atur?s, or to sp?cify v?rsion numb?rs for API v?rsioning.
100
+
6.**Custom Application Logic**: Custom headers can also be used to implement specific application-level logic. For instance, a custom header could be used to determine the language of the response, to enable or disable features, or to specify version numbers for API versioning.
101
101
102
102
**Example**
103
103
104
104
```java
105
105
X-Session-ID:1234567890//custom header X-Session-ID to track user sessions.
106
106
```
107
107
108
-
7.**Bypassing Firewalls or Proxies**: In som? cas?s, custom h?ad?rs can b? us?d to bypass c?rtain n?twork r?strictions, such as fir?walls or proxy s?rv?rs. This should, how?v?r, b? don? r?sponsibly and in accordanc? with s?curity polici?s.
108
+
7.**Bypassing Firewalls or Proxies**: In some cases, custom headers can be used to bypass certain network restrictions, such as firewalls or proxy servers. This should, however, be done responsibly and in accordance with security policies.
109
109
110
110
**Example**
111
111
112
112
```java
113
113
X-Session-ID:1234567890//custom header X-Session-ID to track user sessions.
114
114
```
115
115
116
-
8.**Server Health and Status Information**: Som? applications us? custom h?ad?rs to provid? h?alth and status information about th? s?rv?r or application. This can b? us?d for monitoring and maintaining th? h?alth of th? syst?m.
116
+
8.**Server Health and Status Information**: Some applications use custom headers to provide health and status information about the server or application. This can be used for monitoring and maintaining the health of the system.
117
117
118
118
**Example**
119
119
120
120
```java
121
121
X-Session-ID:1234567890//custom header X-Session-ID to track user sessions.
122
122
```
123
123
124
-
9.**SEO Optimization**: Custom h?ad?rs lik? canonical and pagination h?ad?rs can b? us?d to guid? s?arch ?ngin?s and optimiz? SEO.
124
+
9.**SEO Optimization**: Custom headers like canonical and pagination headers can be used to guide search engines and optimize SEO.
125
125
126
126
**Example**
127
127
128
128
```java
129
129
X-Session-ID:1234567890//custom header X-Session-ID to track user sessions.
130
130
```
131
131
132
-
10.**A/B Testing**: Custom h?ad?rs can b? us?d to control or track A/B t?sting, wh?r? diff?r?nt v?rsions of a s?rvic? ar? t?st?d against ?ach oth?r to d?t?rmin? which p?rforms b?tt?r.
132
+
10.**A/B Testing**: Custom headers can be used to control or track A/B testing, where different versions of a service are tested against each other to determine which performs better.
133
133
134
134
**Example**
135
135
@@ -149,7 +149,7 @@ Custom headers are an integral part of HTTP requests and responses. They can car
149
149
150
150
## Targeted Control with customUrlFilters
151
151
152
-
To provide even more precise control, <BrandName /> introduces the customUrlFilters capability. When used in conjunction with customHeaders, it allows you to specify exactly which URLs should receive the custom headers. This ensures that headers are not indiscriminately applied to every request—only those matching your defined filters will carry the custom headers.
152
+
To provide even more precise control, <BrandName /> introduces the customUrlFilters capability. When used in conjunction with customHeaders, it allows you to specify exactly which URLs should receive the custom headers. This ensures that headers are not indiscriminately applied to every request�only those matching your defined filters will carry the custom headers.
153
153
154
154
### Key Behavior:
155
155
@@ -186,7 +186,7 @@ A request to `https://lambdatest.github.io/sample-todo-app/` will not contain an
186
186
187
187
## A Responsible Approach to Bypassing Firewalls
188
188
189
-
While the ability to add and control custom headers is powerful, it's crucial to use it responsibly. Always follow your organization's security and compliance policies. These capabilities are designed to facilitate secure, realistic testing—not to bypass security controls inappropriately.
189
+
While the ability to add and control custom headers is powerful, it's crucial to use it responsibly. Always follow your organization's security and compliance policies. These capabilities are designed to facilitate secure, realistic testing�not to bypass security controls inappropriately.
190
190
191
191
## Use Cases
192
192
@@ -272,7 +272,7 @@ X-Experiment-ID: variant_b
272
272
273
273
## Conclusion
274
274
275
-
<BrandName />’s customHeaders and customUrlFilters capabilities empower you to simulate complex request scenarios, bypass firewalls responsibly, and selectively apply network rules—providing a flexible, developer-centric approach to browser testing.
275
+
<BrandName />�s customHeaders and customUrlFilters capabilities empower you to simulate complex request scenarios, bypass firewalls responsibly, and selectively apply network rules�providing a flexible, developer-centric approach to browser testing.
276
276
277
277
By turning obstacles like firewalls into controllable conditions, <BrandName /> not only simplifies testing but enhances the realism and effectiveness of your QA process.
0 commit comments