Re: Munchkin web request doesn't handle encoded '?' properly

Devon_Galloway1
Level 1

Munchkin web request doesn't handle encoded '?' properly

Hello, from what we can tell when we send requests to to visit web page API using the question mark character '?' is broken unless we use a work around.

Lets say we want to set the detail string to:
"Escaped detail string has ? character"

Our URI would look like the following:
http://<munchkin_id>.mktoresp.com//webevents/visitWebPage?<some_other_parameters>&_mchRu=Escaped+detail+string+has+%3F+character

However on the activity log in Marketo everything after the '?' character will be cut off. i.e. the details will say
"Escaped detail string has " 

We discovered if we encode the '?' twice that it works. So the character would look like "%253F" in the URI.

We have implemented this work around for now, but if you do fix it we would love to be notified somehow so we can remove our work around.

Thanks!
Tags (1)
2 REPLIES 2
Anonymous
Not applicable

Re: Munchkin web request doesn't handle encoded '?' properly

The URI needs to be URL encoded to work properly, so you are using the correct approach for this situation. 
Devon_Galloway1
Level 1

Re: Munchkin web request doesn't handle encoded '?' properly

I think possibly you may have missed the detail about the '?' character.

If we only encode the URI the question mark character ('?') in the details gets screwed up and won't display. In fact everything after any question mark character will not display.

Our work around was to encode the question mark character twice. Are you saying that the proper way to use the API is to encode the URI, but encode question mark characters twice?

Thanks,