Question:
Hi
I'm sending an HTTP Post request using 7 parametres ad AddFileForUpload function. I'm using ActiveX Chilkat component (9.4.1)
Sending many times the same request (=same parameters and same file) sometimes I obtain "null" as Response Oject
In the HTTP Object the LastErrorXml says
...... readResponse2_4:
Begin reading HTTP response header...totalTime: Elapsed time: 421593 millisec
Timeout waiting to read socket or accept connection
timeoutMs: 20000
Failed to get response header on non-SSL connection.
Use the SessionLogFilename property to log the HTTP traffic to a file to examime the response.
readResponseTime: Elapsed time: 20000 millisec
Have you got any idea ?
Thank you in advance
Test using the latest version of Chilkat. This is very likely already resolved.
Hi! I tried with the new version, but without success.
This is the lastTextError i got with v9.4.1 I can give you even the log of i got with the new version, if can help.
ChilkatLog: SynchronousRequest: DllDate: Jul 10 2013 ChilkatVersion: 9.4.1.26 UnlockPrefix: CCSISTHttp Username: TOMATIS:Dorella Architecture: Little Endian; 32-bit Language: ActiveX VerboseLogging: 1 domain: http://195.31.56.68 port: 8080 ssl: 0 RequestData: HttpVersion: 1.1 Verb: POST Path: /Storage/edk/multipartServices Charset: utf-8 SendCharset: 1 MimeHeader: Content-Type: multipart/form-data RequestParams: RequestItem: name: username value: CECSistemi --RequestItem RequestItem: name: password value: cos_CECSistemi --RequestItem RequestItem: name: postazione value: usrCeriale --RequestItem RequestItem: name: codiceAzienda value: CERIALE --RequestItem RequestItem: name: documentType value: MAGG_Delibere --RequestItem RequestItem: name: method value: loadDocuments --RequestItem RequestItem: name: filename value: Lotto_32 --RequestItem RequestItem: name: Lotto_32 fileOnDisk: C:\Programmi\Polis 2000\Ermes\TMP\20141118_182904_639_Lotto_32.zip numValueBytes: 0 --RequestItem --RequestParams --RequestData ReadTimeout: 20 ConnectTimeout: 10 RequestData: HttpVersion: 1.1 Verb: POST Path: /Storage/edk/multipartServices Charset: utf-8 SendCharset: 1 MimeHeader: Content-Type: multipart/form-data RequestParams: RequestItem: name: username value: CECSistemi --RequestItem RequestItem: name: password value: cos_CECSistemi --RequestItem RequestItem: name: postazione value: usrCeriale --RequestItem RequestItem: name: codiceAzienda value: CERIALE --RequestItem RequestItem: name: documentType value: MAGG_Delibere --RequestItem RequestItem: name: method value: loadDocuments --RequestItem RequestItem: name: filename value: Lotto_32 --RequestItem RequestItem: name: Lotto_32 fileOnDisk: C:\Programmi\Polis 2000\Ermes\TMP\20141118_182904_639_Lotto_32.zip numValueBytes: 0 --RequestItem --RequestParams --RequestData HttpOptions: Accept: */* AcceptCharset: ISO-8859-1,utf-8;q=0.7,*;q=0.7 AcceptLanguage: en-us,en;q=0.5 AddHostHeader: 1 AllowCookieResponseCaching: 0 AllowGzip: 1 ConnectionHeader: Keep-Alive ConnectTimeoutMs: 10000 CookieDir: DigestAuth: 0 FollowRedirects: 1 HttpMethod: Login: LoginDomain: MaxResponseSize: 0 MaxUrlLen: 2000 MimicFirefox: 0 MimicIE: 0 NegotiateAuth: 0 NTLMAuth: 0 PasswordLen: 0 ProxyHostname: ProxyLogin: ProxyLogin: ProxyAuthDomain: ProxyPasswordLen: 0 ProxyPort: 80 ReadTimeoutMs: 20000 Referer: RequiredContentType: ResumePoint: 0 SaveCookies: 1 SendBufferSize: 65535 SendCookies: 1 SslProtocol: 0 UnavailableRetryCount: 0 UnavailableRetryWaitMs: 2000 UserAgent: Chilkat/1.0.0 (+http://www.chilkatsoft.com/ChilkatHttpUA.asp) --HttpOptions httpConnect: hostname: 195.31.56.68 port: 8080 ssl: 0 Need to establish connection to the HTTP server... ConnectTimeoutMs_1: 10000 calling ConnectSocket2 IPV6 enabled connect with NO heartbeat. This is an IPV4 numeric address... AddrInfoList: AddrInfo: ai_flags: 4 ai_family: 2 ai_socktype: 1 ai_protocol: 0 ai_addrlen: 16 ai_canonname: (NULL) --AddrInfo --AddrInfoList Connect using IPV4. ipAddress1: 195.31.56.68 myIP_3: 192.168.0.65 myPort_3: 1449 connect successful (2) Turning on TCP_NODELAY. socketOptions: SO_SNDBUF: 8192 SO_RCVBUF: 8192 TCP_NODELAY: 1 --socketOptions Connected --httpConnect connectTime1: Elapsed time: 78 millisec sendRequestGetResponse_1: sendRequest: Adding Host header... host: 195.31.56.68 port: 8080 Not auto-adding cookies. generateUploadToOutput1: targetPathForUpload: /Storage/edk/multipartServices HttpStartLine: POST /Storage/edk/multipartServices HTTP/1.1 getMimeHeaderHttp: MimeField: name: Host m_value: 195.31.56.68:8080 encodedValue: Host: 195.31.56.68:8080 --MimeField --getMimeHeaderHttp --------------------------------------------- UploadHeader0: POST /Storage/edk/multipartServices HTTP/1.1 Host: 195.31.56.68:8080 --------------------------------------------- calculatedContentLength: 21198922 --------------------------------------------- UploadHeader: POST /Storage/edk/multipartServices HTTP/1.1 Host: 195.31.56.68:8080 Content-Type: multipart/form-data; boundary=------------000402030206010504090600 Content-Length: 21198922 --------------------------------------------- sendMultipartFormData: item: name: username --item item: name: password --item item: name: postazione --item item: name: codiceAzienda --item item: name: documentType --item item: name: method --item item: name: filename --item item: name: Lotto_32 filename: C:\Programmi\Polis 2000\Ermes\TMP\20141118_182904_639_Lotto_32.zip --item actualContentLength: 21198922 --sendMultipartFormData --generateUploadToOutput1 ---- HTTP Request Header ---- RequestHeader: POST /Storage/edk/multipartServices HTTP/1.1 Host: 195.31.56.68:8080 Content-Type: multipart/form-data; boundary=------------000402030206010504090600 Content-Length: 21198922 ---- End of HTTP Request Header ---- --sendRequest sendRequestTime: Elapsed time: 401515 millisec ---- Reading HTTP Response ---- readResponse2_4: Begin reading HTTP response header... Timeout waiting to read socket or accept connection timeoutMs: 20000 Failed to get response header on non-SSL connection. Use the SessionLogFilename property to log the HTTP traffic to a file to examime the response. readResponseTime: Elapsed time: 20000 millisec --readResponse2_4 --sendRequestGetResponse_1 totalTime: Elapsed time: 421593 millisec Failed. --SynchronousRequest --ChilkatLog
Sorry, anyone got any idea? I still don't know how to solve this issue..