Jmeter-"HTTP - 405 Error:Method Not Allowed"

classic Classic list List threaded Threaded
4 messages Options
Reply | Threaded
Open this post in threaded view
|

Jmeter-"HTTP - 405 Error:Method Not Allowed"

Mohamed Noushad
Hi
i am facing error in jmeter while trying to upload the image in the web application using POST method of the JMETER.

is anyone help me in that to resolve this issue.


Sample Request :


Thread Name: Thread Group 1-1
Sample Start: 2016-06-29 10:17:17 IST
Load time: 15809
Connect Time: 777
Latency: 15809
Size in bytes: 436
Headers size in bytes: 335
Body size in bytes: 101
Sample Count: 1
Error Count: 1
Data type ("text"|"bin"|""): text
Response code: 405
Response message: Method Not Allowed

Response headers:
HTTP/1.1 405 Method Not Allowed
Allow: GET, HEAD, OPTIONS, TRACE
Content-Length: 101
Content-Type: text/html
Server: Microsoft-IIS/8.0
X-Powered-By: ASP.NET
Set-Cookie: ARRAffinity=a1634f39ccba9517317254d32be7078bb62c2877a947d85cab990f2708382045;Path=/;Domain=revflexsit.azurewebsites.net
Date: Wed, 29 Jun 2016 04:47:32 GMT


HTTPSampleResult fields:
ContentType: text/html
DataEncoding: null


Request :

POST http://revflexsit.azurewebsites.net/#//testerprofile

POST data:
--25EJ6J2c2j83xdifB8lK_Eq2Vd3YLiHhUmZsrd
Content-Disposition: form-data; name="profileUploadPhoto"; filename="Tulips.jpg"
Content-Type: image/jpeg
Content-Transfer-Encoding: binary

<actual file content, not shown here>
--25EJ6J2c2j83xdifB8lK_Eq2Vd3YLiHhUmZsrd--


[no cookies]

Request Headers:
Connection: keep-alive
Content-Length: 621121
Content-Type: multipart/form-data; boundary=25EJ6J2c2j83xdifB8lK_Eq2Vd3YLiHhUmZsrd; charset=US-ASCII
Host: revflexsit.azurewebsites.net
User-Agent: Apache-HttpClient/4.5.2 (Java/1.8.0_40)


Response Data :

The page you are looking for cannot be displayed because an invalid method (HTTP verb) is being used.
Reply | Threaded
Open this post in threaded view
|

Re: Jmeter-"HTTP - 405 Error:Method Not Allowed"

softwaretestingforum
Administrator
seems post is not allowed (which is strange)

HTTP/1.1 405 Method Not Allowed 
Allow: GET, HEAD, OPTIONS, TRACE 

Does upload require login? Did you do login in JMeter also?
Can you do same operations on chrome, check network tab on console to figure out how request/response are?
~ seleniumtests.com
Reply | Threaded
Open this post in threaded view
|

Re: Jmeter-"HTTP - 405 Error:Method Not Allowed"

Mohamed Noushad
Yes it requires login to upload . So for that what i have to do ?   

So first i have to login and then have to upload it ? but is there component to connect the login and the upload?

i have used mozila for this test not chrome browser.



On Sat, Jul 2, 2016 at 12:02 PM, softwaretestingforum [via Manual and Automated Testing] <[hidden email]> wrote:
seems post is not allowed (which is strange)

HTTP/1.1 405 Method Not Allowed 
Allow: GET, HEAD, OPTIONS, TRACE 

Does upload require login? Did you do login in JMeter also?
Can you do same operations on chrome, check network tab on console to figure out how request/response are?


If you reply to this email, your message will be added to the discussion below:
http://manual-and-automated-testing.1070.x6.nabble.com/Jmeter-HTTP-405-Error-Method-Not-Allowed-tp5002460p5002461.html
To unsubscribe from Jmeter-"HTTP - 405 Error:Method Not Allowed", click here.
NAML

Reply | Threaded
Open this post in threaded view
|

Re: Jmeter-"HTTP - 405 Error:Method Not Allowed"

softwaretestingforum
Administrator
Yes you have to carry out login also through JMeter and following this you should be able to carry out file upload. If you are beginning with JMeter then I would suggest to watch performance testing videos at - www.seleniumtests.com/p/performance-testing-videos.html
~ seleniumtests.com