I tested this on two computers with the latest Chilkat v9.5.0.66. When I try and post a zip 132mb zip file with .SynchronousRequest, a fatal error occurs and the application crashes. I am able to post smaller zip and pdf files so know that the code works. The exact error is "Run-time error '-2147417851 (80010105)'"
Matt, I have sent an email to Chilkat support with a link to the zip.
Code to upload * Error Occurs on .SynchronousRequest call
Do
oHttp.CloseAllConnections
Set oResp = oHttp.SynchronousRequest(rackDomain, 443, 1, oReq)
o("ErrorText") = oHttp.LastErrorText
If Not (oResp Is Nothing) Then
Process_Http = True
o("Status_Code") = oResp.StatusCode
o("Status_Line") = oResp.StatusLine
o("Resp_Body") = oResp.BodyStr
o("X-Trans-Id") = oResp.GetHeaderField("X-Trans-Id")
o("http_last_path") = oReq.Path
o("http_etag") = oResp.GetHeaderField("ETag")
Set oResp = Nothing
Exit Do
End If
I = I + 1
If I = 3 Then Exit Do
Sleep 200
Loop
Code to create the request object
With oReq
.httpVerb = "PUT"
.ContentType = o("http_content_type")
.Path = rackPath & "/" & o("ContainerName") & "/" & o("RecordID") & o("FileExt")
If Len(o("FileName")) > 0 Then
.Path = rackPath & "/" & o("ContainerName") & "/" & o("FileName")
End If
.AddHeader "X-Auth-Token", rackToken
.AddHeader "Content-Length", oBinDat.numBytes
.AddHeader "ETag", oCrypt.HashBytesENC(oBinDat.GetBinary)
If o("Module") = ModuleType.Issuance Then
.AddHeader "X-Object-Meta-ArchiveID", o("RecordID")
If Not IsNull(UsageID) Then .AddHeader "X-Object-Meta-UsageID", UsageID
End If
.LoadBodyFromBytes oBinDat.GetBinary
End With
Crypt Settings
With oCrypt
.HashAlgorithm = "md5"
.EncodingMode = "hex"
End With