[Top][All Lists]

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

Re: Obtaining string results from http calls

From: Jordan Uggla
Subject: Re: Obtaining string results from http calls
Date: Fri, 26 Sep 2014 18:23:12 -0700

On Fri, Sep 26, 2014 at 2:30 PM, Joseph Kelly <address@hidden> wrote:
> Hello,
> Can someone point me in a direction for correct usage of the HTTP module to
> help in returning strings? Is there any documentation for this online?

This sounds like a question more suited to address@hidden, but see
below for tips on getting a good response from grub-devel.

> I am using source code for Grub 2.02~beta2

Please develop against grub from git to keep up to date with the
latest changes, "git clone git://".

> I am attempting to return the results of an http query.
> My code compiles and executes the commands without error, but I think I'm
> having difficulty understanding where the pointers go during the abstraction
> and what the pointers have when the top level commands finish.
> Here is a sample of what I am attempting to do.
> struct grub_file *gf;
> err =, httpquery);
> grub_printf("DEBUG: current_line:
> %s\n",((http_data_t)(gf->data))->current_line);

It might also be helpful to post a complete minimal example in the
form of a patch that can be quickly applied (on top of git HEAD) and
compiles (though clearly, it won't actually work).

> This code just results in a "(null)".
> Any help here would be useful.

Please also include an explanation of your end goal. What
functionality are you trying to add to grub and why?

Good luck on your hacking of grub!

Jordan Uggla (Jordan_U on

reply via email to

[Prev in Thread] Current Thread [Next in Thread]