Archived Forum PostQuestion:
Hi edit:(VB6) been stuck on this for a good number of hours and wonder if you can help.
I am using your chilkatupload component to upload files to my webserver. they are being processed by a PHP script
All works well I receive the 3 responses I need (Header,Status and Body) however the body is displayed as rows of question marks.
I think this is something to do with character sets but for the life of me I cannot work out how to decode it.
can you help? Header...
HTTP/1.1 500 Internal Server Error Date: Sun, 18 Jan 2015 08:38:58 GMT Server: Apache Set-Cookie: PHPSESSID=m07k2l5kdsr49o010acqkuhqv4; path=/ Expires: Thu, 19 Nov 1981 08:52:00 GMT Cache-Control: no-store, no-cache, must-revalidate, post-check=0, pre-check=0 Pragma: no-cache Vary: Accept-Encoding Keep-Alive: timeout=5, max=100 Connection: Keep-Alive Transfer-Encoding: chunked Content-Type: text/html; charset=UTF-8
BODY...
????????›???????????›???????????????????????›???????????????????????????????????????????????????????4?????????
LastErrorTedt...
ChilkatLog:
BlockingUpload:
DllDate: Dec 8 2014
ChilkatVersion: 9.5.0.46
UnlockPrefix: NONE
Username: xxxxx;xxxxx
Architecture: Little Endian; 32-bit
Language: ActiveX
VerboseLogging: 0
Connecting to HTTP server
domain: www.xxxx.co.uk
port: 80
Non-SSL connection
Connect_Socket:
hostname: www.xxxx.co.uk
port: 80
ssl: 0
maxWaitMs: 30000
socketOptions:
SO_SNDBUF: 8192
SO_RCVBUF: 8192
TCP_NODELAY: 0
--socketOptions
Success.
--Connect_Socket
Fetching the 100 Continue response...
numFilesToUpload: 3
sourceFile: C:\CONTROL7\WORKING\UL_JOB.DAT
sourceFile: C:\CONTROL7\WORKING\UL_SL.DAT
sourceFile: C:\CONTROL7\WORKING\UL_SLEDR01.DAT
numBytesSent: 248321
Upload sent, fetching HTTP response...
fetchHttpResponse:
responseStatusCode: 500
fetchResponseData:
Data already buffered and ready..
Data already buffered and ready..
--fetchResponseData
Failed because response status code is not 200
responseStatusCode: 500
--fetchHttpResponse
Failed.
--BlockingUpload
--ChilkatLog
See the information about "Charset 101" presented in a series of pages here: http://www.example-code.com/charset101.asp
Specifically, see the 6th page (but read the 1st 5 pages if this does not make sense) http://www.example-code.com/charset101_6.asp