Hello Bakers,

has anyone of you faced a problem with HTTPSocket and basic auth?

I want to get XML data from my partners webservice, and this requires
basic authentication. For some reason this seems not work with
HTTPSocket.

The URI is generated correctly:
http://xyz:[EMAIL PROTECTED]/dispatcher/http-data/_export/xyz/?id=209583.

But I always get "HTTP/1.1 401 Authorization Required".

When I try to get the content via "file_get_contents()" it all works
fine.


This is my request array:

Array
(
    [method] => GET
    [uri] => Array
        (
            [scheme] => http
            [host] => www.mypartnersdomain.at
            [port] => 80
            [user] =>
            [pass] =>
            [path] => dispatcher/http-data/_export/xyz/
            [query] => Array
                (
                    [id] => 209583
                )

            [fragment] =>
        )

    [auth] => Array
        (
            [method] => basic
            [user] => xyz
            [pass] => pw1234
        )

    [version] => 1.1
    [body] =>
    [line] => GET /dispatcher/http-data/_export/xyz/?id=209583 HTTP/
1.1

    [header] => Host: www.mypartnersdomain.at
Connection: close
User-Agent: CakePHP

    [raw] => GET /dispatcher/http-data/_export/xyz/?id=209583 HTTP/1.1
Host: www.mypartnersdomain.at
Connection: close
User-Agent: CakePHP

)

Has anyone a hint?

Thank you very much, Christoph


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Cake 
PHP" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to