chrishelgert/hapi-rest-proxy

Support for URL params

Closed this issue · 0 comments

At the moment URL params are truncated.

Without proxy

curl -s -o /dev/null -I -w "%{http_code}" https://sonarqube.com/api/measures/component?componentKey=com.icegreen:greenmail-parent&metricKeys=alert_status,reliability_rating,bugs,security_rating,vulnerabilities,sqale_rating,code_smells,coverage,duplicated_lines_density

Returns status code 200

With proxy

curl -s -o /dev/null -I -w "%{http_code}" http://localhost:8080/?url=https://sonarqube.com/api/measures/component?componentKey=com.icegreen:greenmail-parent&metricKeys=alert_status,reliability_rating,bugs,security_rating,vulnerabilities,sqale_rating,code_smells,coverage,duplicated_lines_density

Returns status code 400

Log

2017-5-13 16:48:38 | GET | 400 | https://sonarqube.com/api/measures/component?componentKey=com.icegreen:greenmail-parent

The URL is truncated at the & character.