Unanswered question

Facing Issues on Uploading Zip File

Hi Team,

In our current project requirement, we need to pass header value "FileType:zip", while uploading a zip file. Getting the below error
Passing Request:
POST https://xx.xx.xxx.xxx/2.0/uploadfile HTTP/1.1
Token: {xxxxxxxxx}
Filename: sample
Filetype: zip
servicetag: DRYRUN67
serialnumber: 123456789
customerEmail: etc@dell.com
Content-Type: Multipart/Form-Data
Content-Length: 4618904
Host: xx.xx.xxx.xxx

Response
Error detected by NeoLoad
Error Code: NL-NETWORK-01 Message: Network error: An IO error occurred sending the request. Details: java.net.SocketException: Connection reset by peer: socket write error
Please refer to the documentation for further details and advice

Same requirement for text it is working fine, when ever we trying to change File type header value as zip we are facing above issue.

Please look into this issue and update us

Thank you!

Somasekhar P.
Somasekhar P.

Somasekhar P.

Level
0
42 / 100
points

Answers

I do not see why this header should be the root cause of your issue. I can see that your POST request is a form multipart. You said that it worked for text but was it also a multipart request or only a simple POST request with text type?

How do you know which request type the server can handle? Are you able to record an upload transaction with NeoLoad?

Somasekhar P.
Somasekhar P.

Somasekhar P.

Level
0
42 / 100
points

Server can handle POST and File type is zip and able to upload through DHC client sucessfully, But facing issues while running the script in neo load only (can ignore of txt file as of now, because issues is facing of file type zip)

Somasekhar P.
Somasekhar P.

Somasekhar P.

Level
0
42 / 100
points

And also is there any option in neo load as to pass the file in request as zip file (with out reading the content in the zip file), As of now I'm observing the request the complete zip file it is reading, because our zip files is having a password concept. So our requirement is not to read or unzip the file content, just it should pass the complete zip file with out reading

Somasekhar P.
Somasekhar P.

Somasekhar P.

Level
0
42 / 100
points

FYI..
When we tried with passing with below cases with different header parameters observing different errors:
Case 1:
Request Headers:
FileType zip
Content-Type application/x-www-form-urlencoded
Getting below response.

HTTP/1.1 500 Internal Server Error
Server: Apache-Coyote/1.1
Content-Type: application/json
Content-Length: 129
Date: Thu, 18 Jun 2015 14:01:56 GMT
Connection: close

{"Code":"11","Message":"Unknown Error","Reason":"Expected central directory entry not found (#1)"

Case 2:
Request Headers:
FileType zip
Content-Type Multipart/Form-Data

Getting below error

Error detected by NeoLoad
Error Code: NL-NETWORK-01 Message: Network error: An IO error occurred sending the request. Details: java.net.SocketException: Connection reset by peer: socket write error
Please refer to the documentation for further details and advice

The different behavior is normal. Your server expects a certain type of request. Sending a POST multipart or a POST form is not the same thing. You need to know which type of request your application is expecting.

You said that you can upload using your DHC client. Could you record the upload with NeoLoad when you are doing it with your DHC client? That way you will be sure of the POST request type to use.

If your DHC client cannot use a proxy you could try the tunnel mode recording in NeoLoad.

 

Somasekhar P.
Somasekhar P.

Somasekhar P.

Level
0
42 / 100
points

Thanks Nouredine, It worked through Proxy settings only. Able to upload the zip files through neo load. Now the question is during the test execution we would like to pass more than thousand files, so please suggest us on the steps for parameterization for the source file path option, so that we can run concurrent users test. Please suggest!