Archived Forum Post

Index of archived forum posts


HTTP Download File via API call

Jul 29 '13 at 16:37

Hello I am trying to download a file using CHILKAT.HTTP via a API. This API when called creates a zip file on the fly and downloads it to the default download folder on a computer. So the file actually does not reside anywhere on the server. I am using the Download method to perform this function. I am getting this error. Can you help?

Connecting to API................ Problem Connecting.... Error Code : ChilkatLog: Download: DllDate: Dec 12 2012 UnlockPrefix: CVEHLLHttp Username: CMD-DEV:Swathi Sriramla Architecture: Little Endian; 32-bit Language: .NET 1.* VerboseLogging: 0 backgroundThread: 0 url: toLocalPath: ADT_MDLO localFileAlreadyExists: 0 QuickGetToOutput_Download: qGet_1: simpleHttpRequest_3: httpMethod: GET requestUrl: Connecting to web server... httpServer: port: 443 Using HTTPS. ConnectTimeoutMs_1: 10000 calling ConnectSocket2 IPV6 enabled connect with NO heartbeat. connectingTo: resolveHostname1: dnsCacheLookup: dnsCacheHit: --resolveHostname1 GetHostByNameHB_ipv4: Elapsed time: 0 millisec myIP_1: myPort_1: 4798 connect successful (1) clientHelloMajorMinorVersion: 3.1 buildClientHello: majorVersion: 3 minorVersion: 1 numRandomBytes: 32 sessionIdSize: 0 numCipherSuites: 10 numCompressionMethods: 1 --buildClientHello readIncomingTls_serverHello: processTlsRecord: processHandshake: handshakeMessageType: ServerHello handshakeMessageLen: 0x46 processHandshakeMessage: MessageType: ServerHello Processing ServerHello... ServerHello: MajorVersion: 3 MinorVersion: 1 SessionIdLen: 32 CipherSuite: RSA_WITH_AES_128_CBC_SHA CipherSuite: 00,2f CompressionMethod: 0 Queueing ServerHello message. ServerHello is OK. --ServerHello --processHandshakeMessage handshakeMessageType: Certificate handshakeMessageLen: 0x24b processHandshakeMessage: MessageType: Certificate ProcessCertificates: Certificate: derSize: 581 certSubjectCN: certSerial: 511FB1CF certIssuerCN: --Certificate NumCertificates: 1 Queueing Certificates message... --ProcessCertificates --processHandshakeMessage handshakeMessageType: ServerHelloDone handshakeMessageLen: 0x0 processHandshakeMessage: MessageType: ServerHelloDone Queueing HelloDone message. --processHandshakeMessage --processHandshake --processTlsRecord --readIncomingTls_serverHello HandshakeQueue: MessageType: ServerHello MessageType: Certificate MessageType: ServerHelloDone --HandshakeQueue Dequeued ServerHello message. Dequeued Certificate message. DequeuedMessageType: ServerHelloDone OK to ServerHelloDone! No client certificate required by the server. Encrypted pre-master secret with server certificate RSA public key is OK. Sending ClientKeyExchange... Sent ClientKeyExchange message. Sending ChangeCipherSpec... Sent ChangeCipherSpec message. Derived keys. Installed new outgoing security params. Sending FINISHED message.. algorithm: aes keyLength: 128 Sent FINISHED message.. readIncomingTls_changeCipherSpec2: processTlsRecord: processChangeCipherSpec: ccsProtocolType: 1 --processChangeCipherSpec --processTlsRecord --readIncomingTls_changeCipherSpec2 readIncomingTls_handshakeFinished2: processTlsRecord: processHandshake: handshakeMessageType: HandshakeFinished handshakeMessageLen: 0xc processHandshakeMessage: MessageType: HandshakeFinished FinishedMsgLen: 12 Queueing Finished message. --processHandshakeMessage --processHandshake --processTlsRecord --readIncomingTls_handshakeFinished2 Dequeue the FINISHED message... Dequeued Finished message. Handshake completed successfully. Secure Channel Established. connectElapsedMs: 453 -- BuildGetRequest -- Not auto-adding cookies. Adding Basic Authentication Header login: sendElapsedMs: 0 StatusCode: 500 StatusText: Internal Server Error Reading response body... fetchSslResponseData2_2: No transfer-encoding header field. sslContentLength: 676 extraLen: 676 Already have entire response. --fetchSslResponseData2_2 readResponseElapsedMs: 78 Got connection:close header --simpleHttpRequest_3 --qGet_1 --QuickGetToOutput_Download bFileDeleted: 1 totalElapsedMs: 547 ContentLength: 676 Failed. --Download --ChilkatLog


Please try with the latest version of Chilkat. Also, please make sure to post the LastErrorText within <pre> / </pre> to keep the line endings and maintain readability.