Zimbra offers Open Source email server software and shared calendar for Linux and the Mac
Go Back   Zimbra :: Forums > Zimbra Collaboration Suite > Developers

Welcome to the Zimbra :: Forums!
Welcome, if you would like to post a comment please register. We also encourage you to explore all things Zimbra with our team and members of the community.

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 10-29-2008, 06:11 AM
Member
 
Posts: 10
Default Upload Problem 204, NULL

Hello,
I just tried to implement a file-upload (in knowledge of the documentation in upload-file.txt) and I am able to send the POST Data. I made a little C++ client-side programm which sents the soap-login-package and receives the ZM_AUTH_TOKEN and it builds the POST Data.
For background information I took these additional information:
public:howto:htmlforms [Ararat Synapse]
and
How To Build A multipart/form-data POST request
The POST-data looks like this:
Quote:
POST /service/upload HTTP/1.1
Host: zimbra
Content-Type: multipart/form-data; boundary=12BA21A1BHS_Boundary
Conection: keep-alive
Keep-Alive: 300
Cookie: ZM_AUTH_TOKEN=0_dd97ed9acc10244476ec496db57312c883 ab2537_69643d33363a34366163363835342d383865622d346 331642d613731632d3839303333393630653830393b6578703 d31333a313232353435363836353630303b747970653d363a7 a696d6272613b
Content-Length: 1118


--12BA21A1BHS_Boundary
Content-disposition: form-data; name="dmRepAusUnit";filename="dmRepAusUnit.dti"
Content-Type:multipart/formdata;name="dmRepAusUnit.dti"
Content-Transfer-Encoding:base64


W0Rlc2lnbmVyXQ0KVmVyc2lvbj0xDQpMZWZ0PTU4NA0KVG9wPT I0MA0KV2lkdGg9NzQxDQpIZWln
aHQ9NTg4DQpTcGxpdHRlcj0xODUNClNlbGVjdGVkVGFiPUtvbX BvbmVudGVuDQoNCltDb21wb25l
bnRzXQ0KVmVyc2lvbj0xDQpMZWZ0PTANClRvcD0wDQoNCltUcm VlVmlld10NClZlcnNpb249MQ0K
UHJpbnRIZWFkZXI9MQ0KUHJpbnRUb1NpbmdsZT0xDQpQcmludF RvRmlsZT0wDQpQcmludEJvcmRl
cnM9MQ0KUHJpbnRTZWxlY3RlZD0wDQpQcmludFZpc2libGU9MA 0KRXhwYW5kZWRJdGVtcz1kbVJl
cEF1c1xhZGNNYWluXGFkc0t1bmRlbmF1c3dhaGwsZG1SZXBBdX NcYWRjTWFpblxhZHNFbmRrdW5k
ZSxkbVJlcEF1c1xhZGNSZXBvc2l0b3J5DQoNCltEYXRhRGlhZ3 JhbXNdDQpWZXJzaW9uPTENClBy
aW50SGVhZGVyPTENClByaW50VG9TaW5nbGU9MQ0KUHJpbnRUb0 ZpbGU9MA0KUHJpbnRCb3JkZXJz
PTENCkxlZnQ9MA0KVG9wPTANCk1vZGVTZWxlY3RlZD1TZWxlY3 Rpb25Nb2RlDQpDb3VudD0xDQoN
CltEYXRhRGlhZ3JhbXMuRGlhZ3JhbS4wXQ0KSXNsYW5kcz0NCk NvbW1lbnRzPQ0KQnJpZGdlcz0N
CkFsbHVkZXM9DQoNCg==


--12BA21A1BHS_Boundary
Content-disposition: form-data; name="requestId"

5B13709B
--12BA21A1BHS_Boundary--
The answer from the server is: 204,'null'
So what is wrong???
(The Zimbra_Test Programm is in the attachment, Codegear C++ Builder and Indy-Library 10.1.5), and a little it from Jedi-Library)
Attached Files
File Type: zip Zimbra_Test.zip (20.1 KB, 13 views)
Reply With Quote
  #2 (permalink)  
Old 11-02-2010, 10:24 AM
be1 be1 is offline
Junior Member
 
Posts: 6
Default

I have the same issue while uploading a file with javascript's xmlHttpRequest.
Reply With Quote
Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes


Similar Threads

Why Join?

Registering let's you ask questions, makes it easier to search, displays any files attached to posts, and notifies you about replies.

blog.zimbra.com




 

SEO by vBSEO ©2011, Crawlability, Inc.