Skip to content
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

Incorrect Request-URI when using HttpClient with proxy #10038

Closed
1 of 3 tasks
dmromanov opened this issue Jan 14, 2017 · 0 comments
Closed
1 of 3 tasks

Incorrect Request-URI when using HttpClient with proxy #10038

dmromanov opened this issue Jan 14, 2017 · 0 comments
Labels

Comments

@dmromanov
Copy link
Contributor

dmromanov commented Jan 14, 2017

This is a (multiple allowed):

  • bug

  • enhancement

  • feature-discussion (RFC)

  • CakePHP Version: 3.3.12

  • Platform and Target:
    PHP CLI 7.1.0-5+deb.sury.org~yakkety+1
    Squid proxy 3.5.12
    Ubuntu 16.10

What you did

I've used Cake\Http\Client to send a request to a web-server via a proxy.

        $request = new Client();

        $request->get('http://127.0.0.1:8765/foo', [], [
            'proxy' => [
                'proxy' => '127.0.0.1:3128',
            ]
        ]);

What happened

Http Client sent a request with an URI specified in relative URI form.
Request failed. Proxy returned an error.
bug

What you expected to happen

According to RFC2616 when sending a request to a proxy request URI MUST be sent in an absolute form.

solved

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants