-
Notifications
You must be signed in to change notification settings - Fork 358
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Request URL containing $ doesn't work well with PHP - cURL #284
Comments
Instead of escaping |
I'm not entirely sure this is the exact same thing, but I'm errors from an API when I use the PHP - cURL option and the postfields look like this. I can run this no problem with bash curl export equivalent in Postman, but for some reason this isn't working out of the box with the PHP - cURL option.
|
Fixed by #352 |
Short Explanation
When I am generating PHP - cURL code from a postman request with URL containing a $ sign followed by a letter or underscore (for example $firstName, $_address, $LastName), then the code generated by postman doesn't work. This is because PHP treats them as variable name (but they are not variable name(s) in this case).
Example
My request URL is : -
The code generated by postman : -
The above code will not work as PHP will treat $filter as a variable name. To solve this problem we need to put a \ (backslash) before $filter like this : -
And now it will work flawlessly.
The text was updated successfully, but these errors were encountered: