string 'https://graph.facebook.com/oauth/access_token?client_id=[removed]&client_secret=[removed]&redirect_uri=http%3A%2F%2Fmysite.co.uk%2Fpath%2F&code=AQDUj2_JhzYVuQxRYmzueRBIpXk_VGWnu0inRUdjMiT1Pv400Rrex2vz7OcZJYXPGQ4WHKN_io-GjiRGg8iF3cfMwzxM4zpAOoXkZdavQRb6OJCM-MhElDf_urB0bg78_02NAUJ56HilXNkBwnozhgGA7-kBva24PYuFFkx2jy3nA7A9MkE6r228b_vZ7n2IBoXUc_yle39u9a3bXuwnx9TgHKYC_S88Mb0HGHSXt4y5NFWOAWMoyoQhnAOgWsvWLorOdunWFithQU7d5sgnbBZbFRxtr3T3M678ATkmn4duOdupqJM22HI8yXxviZSpe1w' (length=504)
This is not what I want. Facebook won't accept the redirect_url parameter being URL encoded - as much as it may be bad practice, I need the redirect_uri to be http://mysite.co.uk/path/
No matter what I try Guzzle is not letting me send the URL in the format I want.
Please help?
Hey Chris,Take a look at these docs here: http://guzzlephp.org/http-client/request.html#query-string-parametersBy using the request's query using $request->getQuery() then $query->useUrlEncoding(false); you can disable UrlEncoding.Hope this helps.
On Wednesday, October 23, 2013 5:09:08 AM UTC-5, Chris Noden wrote:
Is this for Guzzle 4 too? I get:
Fatal error: Call to undefined method GuzzleHttp\Message\Response::getQuery() .
I believe that setting $query->useUrlEncoding(false); will set it in the $request.
On Thursday, November 14, 2013 11:20:05 AM UTC-6, Chris Noden wrote:
I'm not sure how this should work. eg:
$query = $request->getQuery();$query->useUrlEncoding(false);But then how do you set $query back into the $request ? If I follow this with: $request->send(); then I still get url-encoded queries being posted.
On Wednesday, October 23, 2013 7:12:47 PM UTC+1, Michael Stramel wrote:
Hey Chris,Take a look at these docs here: http://guzzlephp.org/http-client/request.html#query-string-parameters
...By using the request's query using $request->getQuery() then $query->useUrlEncoding(false);<span style="font-family:Consolas,Monaco,Menlo,'Courier New',monospace;font-size:14px;line