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

Problem with HTTP requests

Current rawhide seems to break my lighttpd server. It is now returning 400 Bad Request errors for requests from anaconda. This worked on the 4th, when my last install attempt was.

The http request from anaconda is:

GET /fedora/pungi/CoRA/development/i386/os/images/minstg2.img HTTP/1.0
Host: sw.cora.nwra.com
User-Agent: anaconda/
X-Anaconda-Architecture: i386

X-Anaconda-System-Release: Fedora


Not sure how well formed that is or if lighttpd is being too picky.

Perhaps the extra blank lines?  Looks like in urlinstall.c:

    if (ui->protocol == URL_METHOD_HTTP) {
        char *arch = getProductArch();
        char *name = getProductName();
        int q;

        q = asprintf(&ehdrs, "User-Agent: anaconda/%s\r\n"
                             "X-Anaconda-Architecture: %s\r\n"
                             "X-Anaconda-System-Release: %s\r\n",
                     VERSION, arch, name);

arch and name must have some trailing newlines.

Orion Poplawski
Technical Manager                     303-415-9701 x222
NWRA/CoRA Division                    FAX: 303-415-9702
3380 Mitchell Lane                  orion cora nwra com
Boulder, CO 80301              http://www.cora.nwra.com

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