Gatling not able to make GET call on requests which has '#' character in it

13 views
Skip to first unread message

sanket talaviya

unread,
Feb 24, 2018, 2:11:52 AM2/24/18
to Gatling User Group
Gatling seems to be ignoring the part of api after '#' character-  Do any one know how to fix this.

Also plz check below request and its logs

Request::

.exec(http(getRequestName("someEndpoint"))
.get(SimulationUtils.getUrl() + "/abc/gateway/portal/#//user/ready?success")
.header("SomeAuthToken", "${SomeAuthToken}")
.headers(headers))


Logs:

Request DefaultFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
GET /abc/gateway/portal/ HTTP/1.1
Accept: application/json, text/javascript, */*; q=0.01
Content-Type: application/json
Accept-Language: en-US,en;q=0.5
Accept-Encoding: gzip, deflate
User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.11; rv:46.0) Gecko/20100101 Firefox/46.0
X-Requested-With: XMLHttpRequest
Host: abc-def.test.xyz.com

Stéphane LANDELLE

unread,
Feb 24, 2018, 2:21:30 AM2/24/18
to gat...@googlegroups.com
You're getting it wrong, # is not a valid path character (pchar). Please read https://tools.ietf.org/html/rfc3986#section-3.
# is the fragment delimiter and whatever comes after that is NOT sent to the server and only interpreted in the browser.

Stéphane Landelle
GatlingCorp CEO


--
You received this message because you are subscribed to the Google Groups "Gatling User Group" group.
To unsubscribe from this group and stop receiving emails from it, send an email to gatling+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply all
Reply to author
Forward
0 new messages