HTTP/2.0 403 Forbidden server: AkamaiGHost

707 views
Skip to first unread message

Максим Варанкевич

unread,
Nov 9, 2018, 6:32:07 AM11/9/18
to jmeter-plugins
When I use HTTP2 plug in in Jmeter, i have embedded resources errors : HTTP/2.0 403 Forbidden
server: AkamaiGHost 
Some embedded resources downloaded  OK some with errors, requests with errors go throw http1.1 or spdy in browser, how can i resolve it ?

gli...@gmail.com

unread,
Nov 12, 2018, 5:22:15 AM11/12/18
to jmeter-plugins
Looking into host names, at least some of the failing embedded resources, to wit:

appear to be external, i.e. they are not an integral part of your application. You should not be even executing requests to these endpoints as they are not something you can efficiently control. Even if you find out that the slowest part of your application is request to some font there is not much you can do about it. Moreover conducting a load to resources you don't own may be considered as an attempt of a DDoS attack which is illegal in the majority of countries. 

So make sure to filter out calls to embedded resources to limit them only to the domain(s) where your application is deployed via "URLs must match" input of the "Advanced" tab of the HTTP2 Request Sampler

Screenshot 2018-11-12 at 11.18.35.png


You can put Perl-5 style regular expressions there. 


Check out Web Testing with JMeter: How To Properly Handle Embedded Resources in HTML Responses article for more information on the topic.


Just in case, be aware that you can suppress HTTP2 Request sampler failures on failing embedded resources by adding the next line to user.properties file:


httpsampler.ignore_failed_embedded_resources=true

 


maxvara...@gmail.com

unread,
Nov 14, 2018, 5:12:23 AM11/14/18
to jmeter-plugins
Thank you for your reply, but the main problem is that the loaded elements have 403 response code when using the http2 plugin and that elements i must use in my script
 
понедельник, 12 ноября 2018 г., 13:22:15 UTC+3 пользователь gli...@gmail.com написал:
Reply all
Reply to author
Forward
0 new messages