|
-
Aug 30th, 2025, 10:28 AM
#1
Thread Starter
Member
Viewing and Saving HTTP request Items
HI, I have this statement :
Dim Http As System.Net.HttpWebRequest = CType(WebRequest.Create("https://client-api.centraltransport.com/api/v1/Quote/byClass"), HttpWebRequest)
In my immediate window (VS 2022) when I type in ?Http It exposes the contents of the Http var as seen below.
What I would like to do is write it to and save it to text file or push into a DB table. Both I know how to do.
What I can seem to figure out is how to expose all the http information at runtime. Http isnt indexed.
Is there a way I can iterrate through Http so I can save the data.
Thank You
-dan
?http
{System.Net.HttpWebRequest}
Accept: "text/plain; x-api-version=1.0"
Address: {https://client-api.centraltransport.com/api/v1/Quote/byClass}
AllowAutoRedirect: True
AllowReadStreamBuffering: False
AllowWriteStreamBuffering: True
AuthenticationLevel: MutualAuthRequested {1}
AutomaticDecompression: None {0}
CachePolicy: {Level:BypassCache}
ClientCertificates: {System.Security.Cryptography.X509Certificates.X509CertificateCollection}
Connection: "Keep-Alive"
ConnectionGroupName: Nothing
ContentLength: 324
ContentType: "application/json; x-api-version=1.0"
ContinueDelegate: Nothing
ContinueTimeout: 350
CookieContainer: Nothing
CreatorInstance: {System.Net.WebRequest.DesignerWebRequestCreate}
Credentials: Nothing
[Date]: #1/1/0001 12:00:00 AM#
Expect: "100-continue"
HaveResponse: False
Headers: {Content-Type: application/json; x-api-version=1.0
Accept: text/plain; x-api-version=1.0
Host: client-api.centraltransport.com
Content-Length: 324
Expect: 100-continue
Connection: Keep-Alive
}
Host: "client-api.centraltransport.com"
IfModifiedSince: #1/1/0001 12:00:00 AM#
ImpersonationLevel: Delegation {4}
KeepAlive: True
MaximumAutomaticRedirections: 50
MaximumResponseHeadersLength: 64
MediaType: Nothing
Method: "POST"
Pipelined: True
PreAuthenticate: False
ProtocolVersion: {1.1}
Proxy: {System.Net.WebRequest.WebProxyWrapper}
ReadWriteTimeout: 300000
Referer: Nothing
RequestUri: {https://client-api.centraltransport.com/api/v1/Quote/byClass}
SendChunked: False
ServerCertificateValidationCallback: Nothing
ServicePoint: {System.Net.ServicePoint}
SupportsCookieContainer: True
Timeout: 100000
TransferEncoding: Nothing
UnsafeAuthenticatedConnectionSharing: False
UseDefaultCredentials: False
UserAgent: Nothing
Tags for this Thread
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|