You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi, I' am trying to send PHP_EOL (\n) symbols within my query, but I get the following error (403 Forbidden): https://pastebin.com/pR9JEbKP
To do so I use in the input ($data) text blocks with three numbes like <666> and in TranslateClient.php in section private function getResponse($data) I use the following replacement: $data = str_replace('<888>', PHP_EOL, $data); right before $queryArray = array_merge[..]
In the meantime, I' am able to decode the $queryBodyEncoded query with http://www.url-encode-decode.com/ and it shows that my query syntax (if it's a thing) is right (comparing to query without PHP_EOL).
So I assume that it's either Google don't like query with encoded PHP_EOL or I' am doing smth wrong.
Please help me.
The text was updated successfully, but these errors were encountered:
It seems that just rearragement of $data = str_replace('<888>', PHP_EOL, $data); and $tokenData = is_array($data) ? implode('', $data) : $data; solved it.
Hi, I' am trying to send PHP_EOL (\n) symbols within my query, but I get the following error (403 Forbidden):
https://pastebin.com/pR9JEbKP
To do so I use in the input ($data) text blocks with three numbes like <666> and in TranslateClient.php in section
private function getResponse($data)
I use the following replacement:$data = str_replace('<888>', PHP_EOL, $data);
right before$queryArray = array_merge[..]
In the meantime, I' am able to decode the $queryBodyEncoded query with http://www.url-encode-decode.com/ and it shows that my query syntax (if it's a thing) is right (comparing to query without PHP_EOL).
So I assume that it's either Google don't like query with encoded PHP_EOL or I' am doing smth wrong.
Please help me.
The text was updated successfully, but these errors were encountered: