login about faq

Hi ,

 I ran the HTTP example of chilkat to download remote file. It works fine.
 Now my requirement is when I send a HTTP request to download a file.
  1. Server side it generates dynamically and doesn't store anywhere directly pass the file to HTTP request.

 when I do this manually it worked.

 But while programmatically. I got error.

 I am sending the chilkat log.

 **Log :**
    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: 936
            -- BuildGetRequest --
            Not auto-adding cookies.
            Adding Basic Authentication Header
            login: xxxxxxxxx
            sendElapsedMs: 0
            StatusCode: 500
            StatusText: Internal Server Error
            contentLength: 673
            Reading response body...
            fetchSslResponseData2_2:
              No transfer-encoding header field.
              sslContentLength: 673
              extraLen: 673
              Already have entire response.
            --fetchSslResponseData2_2
            readResponseElapsedMs: 234
            Got connection:close header
          --simpleHttpRequest_3
        --qGet_1
      --QuickGetToOutput_Redirect

asked Jul 29 '13 at 09:13

saradhi's gravatar image

saradhi
1111


The HTTP error code is 500, which means that the problem is on the server-side - are you sure you are using the correct parameters for the API in your code? Maybe you could post your source code?

link

answered Jul 29 '13 at 11:43

jpbro's gravatar image

jpbro ♦
1.1k2618

The file is downloaded in streaming mode directly to the filesystem.

Is it possible using chilkat to get the stream using HTTP ? If required i will send the source code.

(Jul 29 '13 at 23:44) saradhi

To be honest, I'm not sure - I'm just a fellow user, not a Chilkat employee, and I don't use streaming mode for HTTP. Maybe you should try with the QuickGet method, just to see if it works at all with the Chilkat component and debug your parameters for the server-side API that way. Once it works, then you can try the streaming method again.

(Jul 30 '13 at 09:22) jpbro ♦

It's important to include the information at the beginning of the LastErrorText because it gives context to the remainder of the information. In this case, it's important to know the version of Chilkat used. If it's an older version, it could be an issue that my have already been solved by updating to the latest version.

I agree with jpbro though, a 500 Server Internal Error points to a problem on the server-side. (Which doesn't necessarily mean that's where the source of the problem lies, but it just points in that direction and one would think it's more probable that the cause is on the server-side.)

link

answered Jul 31 '13 at 12:04

chilkat's gravatar image

chilkat ♦♦
11.8k316358420

Your answer
toggle preview

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Markdown Basics

  • *italic* or __italic__
  • **bold** or __bold__
  • link:[text](http://url.com/ "title")
  • image?![alt text](/path/img.jpg "title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported

Tags:

×35

Asked: Jul 29 '13 at 09:13

Seen: 861 times

Last updated: Jul 31 '13 at 12:04

powered by OSQA