ne_read_response_block and authentication.

Pierre ANCELOT pierreact at gmail.com
Fri Sep 18 07:08:53 EDT 2009


Ok... nevermind, I figured it out...
the whole code had to be run again upon a failure...
if ne_end_request returned different than NE_OK...

Though... I'm wondering, wouldn't there is a way to figure this out before
ne_end_request?, actually, before data reading?
If not, is there a way to tell which position I want to start reading?
Thanks.

On Thu, Sep 17, 2009 at 11:26 PM, Pierre ANCELOT <pierreact at gmail.com>wrote:

> Hello everyone,
> I'm having an issue with this code:
>
>
>     ne_request *req;
>     req = ne_request_create(this->neonsess, "GET", path);
>     ne_begin_request(req);
>     dwBytesRead = ne_read_response_block(req, (char*)pData, dwSize);
>     ne_end_request(req);
>
> The authentication isn't working...
> Before this piece of code, I got everything working perfectly and
> this->neonsess is passed to a ne_set_server_auth(this->neonsess,
> &Webdav::my_auth, this);
>
> So I'm wondering if there is something particular to do using
> ne_read_response_block...
>
> Anyone?
> Thanks :)
> Pierre.
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.manyfish.co.uk/pipermail/neon/attachments/20090918/a3b1ba06/attachment.html 


More information about the neon mailing list