jmeter-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Vipin Jain <vipin.r...@gmail.com>
Subject Re: passing byte stream to upload document in HTTP sampler (Rest API)
Date Fri, 04 Apr 2014 07:28:57 GMT
Hi

Thanks for the reply, here my request is PUT not post.
I need to send bytestream of the document I want to upload
Below is the request and response
PUT
https://spint.dev.syncplicity.com/SyncplicityConnector/SPConnector.svc/namespace/Site1_DocLib2/JMFolder1/133KBDOCFile.docx

PUT data:

D:\Syncplicity\Automaiton\Trials\UploadDocs\133KBDOCFile.docx

[no cookies]

Request Headers:
Connection: keep-alive
x-isi-ifs-target-type: object
x-isi-ifs-site-url: http://SPOINT-3:8002/Site_Title_1
Content-Type:
application/vnd.openxmlformats-officedocument.wordprocessingml.document
Content-Length: 63
Host: spint.dev.syncplicity.com
User-Agent: Apache-HttpClient/4.2.6 (java 1.5)

Response
Response headers:
HTTP/1.1 200 OK
Cache-Control: private
Content-Type: application/json; charset=utf-8
Server: Microsoft-IIS/7.5
x-isi-ifs-sharepoint-version: SharePoint Server 2010,SharePoint Server 2010
X-AspNet-Version: 2.0.50727
X-Powered-By: ASP.NET
Date: Fri, 04 Apr 2014 07:16:17 GMT
Content-Length: 2


HTTPSampleResult fields:
ContentType: application/json; charset=utf-8
DataEncoding: utf-8

But document is uploaded 1 KB and file path as its contents.
Real document is not uploaded.

Please help

-Vipin



-----
Vipin Jain
--
View this message in context: http://jmeter.512774.n5.nabble.com/passing-byte-stream-to-upload-document-in-HTTP-sampler-Rest-API-tp5719741p5719752.html
Sent from the JMeter - User mailing list archive at Nabble.com.

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@jmeter.apache.org
For additional commands, e-mail: user-help@jmeter.apache.org


Mime
View raw message