Session › Network log of a test session (Server 2)
Session
Network log of a test session (Server 2) To fetch Network log that contains all the requested urls of a test session in plain json text.
Network log of a test session (Server 2) curl -- request GET \
-- url "https://manual-api.lambdatest.com/sessions/{session_id}/log/network" \
-- header "Authorization: Basic <encoded-value>"
{
"_id" : "uigakk12kbad" ,
"cache" : { } ,
"startedDateTime" : "2022-03-14T08:48:33.516688738Z" ,
"time" : 0 ,
"timings" : {
"receive" : 0 ,
"send" : 0 ,
"wait" : 0
} ,
"request" : {
"bodySize" : 0 ,
"cookies" : [
"<string>"
] ,
"headers" : [
"<string>"
] ,
"headersSize" : -1 ,
"httpVersion" : "HTTP/1.1" ,
"method" : "CONNECT" ,
"queryString" : [
"<string>"
] ,
"url" : "http://testing.com"
} ,
"response" : {
"bodySize" : 0 ,
"content" : {
"encodeing" : "base64" ,
"mimeType" : "" ,
"text" : "" ,
"size" : 0
} ,
"cookies" : [
"<string>"
] ,
"headers" : [
"<string>"
] ,
"headersSize" : -1 ,
"httpVersion" : "HTTP/1.1" ,
"redirectURL" : "" ,
"status" : 200 ,
"statusText" : "OK"
}
}
Authorizations Authorization string header required
Basic authentication header of the form Basic <encoded-value>, where <encoded-value> is the base64-encoded string username:password.
Path Parameters session_id string required
get logs based on session id
Response 200▼
application/json successful operation
timings object
▶ Hide child attributestimings. receive number
Example: 0
timings. send number
Example: 0
timings. wait number
Example: 0
request object
▶ Hide child attributesrequest. bodySize number
Example: 0
request. headersSize number
Example: -1
request. httpVersion string
Example: "HTTP/1.1"
request. method string
Example: "CONNECT"
request. queryString string[]
request. url string
Example: "http://testing.com"
response object
▶ Hide child attributesresponse. bodySize number
Example: 0
response. content object
▶ Show child attributes
response. headersSize number
Example: -1
response. httpVersion string
Example: "HTTP/1.1"
response. redirectURL string
Example: ""
response. status number
Example: 200
response. statusText string
Example: "OK"
Network log of a test session (Server 2) curl -- request GET \
-- url "https://manual-api.lambdatest.com/sessions/{session_id}/log/network" \
-- header "Authorization: Basic <encoded-value>"
{
"_id" : "uigakk12kbad" ,
"cache" : { } ,
"startedDateTime" : "2022-03-14T08:48:33.516688738Z" ,
"time" : 0 ,
"timings" : {
"receive" : 0 ,
"send" : 0 ,
"wait" : 0
} ,
"request" : {
"bodySize" : 0 ,
"cookies" : [
"<string>"
] ,
"headers" : [
"<string>"
] ,
"headersSize" : -1 ,
"httpVersion" : "HTTP/1.1" ,
"method" : "CONNECT" ,
"queryString" : [
"<string>"
] ,
"url" : "http://testing.com"
} ,
"response" : {
"bodySize" : 0 ,
"content" : {
"encodeing" : "base64" ,
"mimeType" : "" ,
"text" : "" ,
"size" : 0
} ,
"cookies" : [
"<string>"
] ,
"headers" : [
"<string>"
] ,
"headersSize" : -1 ,
"httpVersion" : "HTTP/1.1" ,
"redirectURL" : "" ,
"status" : 200 ,
"statusText" : "OK"
}
}