Re: Http User-Agent



Dan Winship wrote:

libsoup 2.2 is a little out of date now. 2.4 came out last spring, and
the current version is 2.24 (which, despite the massive version bump, is
really just a little bit more than 2.4).


I know, unfortunately the enviroment that i need to use does not have libsoup 2.4. So :(

In 2.2 there was no explicit support for User-Agent, but you can
manually set it on each request:

    msg = soup_message_new (...);
    soup_message_add_header (msg, "User-Agent", "whatever/1.0");
    ...


Thanks for the instructions.

--
Arto Karppinen
------------------------------
arto karppinen iki fi


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