This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

HTTP Webserver from SD-Card with the Evaluation Board

Hello,

i'am study electrical engineering. I Have the evaluation board
MCBSTR9 from Keil with STR9-11x processor. The HTTP Demo works fine.

My interesting is the following:

--> HTTP Pages shall be loading from the SD Card.

My Problem:

In some threads other peoples talk about the file "HTTP_uif.c" to solve the problem but i didn't find it anywhere on my Keil installatin disk or Harddrive installation path.

My Question:

1.) Where can i find the File?
2.) Have anybody a project where my interested wishes are included or can help me to import and manage the "MCBSTR9_Http_demo" to work with it.

Please help me.....

Thank your for every people help.

Christian

Parents Reply Children
  • Hello,

    i have solved many of my problems.

    But one problem/ maybe it can be that i think in the wrong way is to cast a pointer into a string.

    file : HTTP_CGI.c line 170

     var = (U8 *)alloc_mem (40);
    
    
      do_format = __FALSE;
      do_delete = __FALSE;
      do {
        /* Parse all returned parameters. */
        dat = http_get_var (dat, var, 40);
    
            if (var[0] != 0) {
          /* Parameter found, returned string is non 0-length. */
          if (str_scomp (var, "label=") == __TRUE) {
            str_copy ((U8 *)label, var+6);
            /* Convert 'label' to upper case. */
            for (p = (U8 *)&label; *p; p++) {
              *p = toupper (*p);
            }
          }
          else if (str_scomp (var, "format=yes") == __TRUE) {
            do_format = __TRUE;
          }
    
              else if (str_scomp (var, "delete=yes") == __TRUE) {
    
    --> Hear i need a variable with the full data of the variable "var"(pointer alloc mem) as string.
    
    

    I have no idea how it can do this...
    Maybe a loop over the pointer!!!!?????

    thanks

    Christian

  • I'm not sure what you mean by that?

    In 'C', a string is just an array of char, with a NUL marking the end.

    There is no type in 'C' which "holds the full data" of an array - the array name is, effectively, just a pointer to the 1st element.

    This is textbook stuff - nothing specifically to do with Keil

    c-faq.com/.../index.html

    publications.gbdirect.co.uk/.../

    http://www.keil.com/books/