php - Use slash in config.yml variable -


i'm trying set variable in config.yml of 8p guzzle bundle (https://github.com/8p/guzzlebundle) this:

guzzle:     clients:         identity_api:             base_url: "%some.url%:5000/v2.0" 

and doing typical get:

$client = $this->container->get('guzzle.client.identity_api'); $response = $client->get('/users') 

but receiving error telling me url requested is:

http://somedomain.com:5000/users 

i think slash, i'm trying scape backslash nothing.

my mistake, following http://docs.guzzlephp.org/en/latest/quickstart.html#making-a-request

base_uri            uri             result http://foo.com      /bar            http://foo.com/bar http://foo.com/foo  /bar            http://foo.com/bar http://foo.com/foo  bar             http://foo.com/bar http://foo.com/foo/ bar             http://foo.com/foo/bar http://foo.com      http://baz.com  http://baz.com http://foo.com/?bar bar             http://foo.com/bar 

i have remove slash of users request.

$client = $this->container->get('guzzle.client.identity_api'); $response = $client->get('users') 

Comments

Popular posts from this blog

javascript - How to get current YouTube IDs via iMacros? -

c# - Maintaining a program folder in program files out of date? -

emulation - Android map show my location didn't work -