Re: access log



There is still an issue, for bad requests this:

  soup_message_get_uri (s_msg);

returns NULL, what means I have log lines like this one:

  127.0.0.1 - - [06/Aug/2009:15:33:18 GMT] "GET (null) HTTP/1.1" 400 0



J. David Ibáñez wrote:
> that works, thanks!
> 
> 
> Dan Winship wrote:
>> On 08/06/2009 06:06 AM, "J. David Ibáñez" wrote:
>>>     s_client = (SoupClientContext*) g_value_get_object (++param_values);
>>>     if (s_client == NULL)
>>>       printf("s_client is NULL\n");
>>>
>>> This is the output:
>>>
>>>   n_param_values is 3
>>>   [...]: Warning: g_value_get_object: assertion `G_VALUE_HOLDS_OBJECT
>>> (value)' failed
>>>   [...]
>>>   s_client is NULL
>> Ah, note the warning; SoupClientContext isn't a GObject, so you can't
>> use g_value_get_object() to retrieve it. You need g_value_get_boxed().
>>
>> -- Dan
> 
> 


-- 
J. David Ibáñez
Itaapy <http://www.itaapy.com>         Tel +33 (0)1 42 23 67 45
9 rue Darwin, 75018 Paris              Fax +33 (0)1 53 28 27 88


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]