lwip-users
[Top][All Lists]
Advanced

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

Re: [lwip-users] problem with web page with frames


From: rocco brandi
Subject: Re: [lwip-users] problem with web page with frames
Date: Tue, 5 Jul 2011 14:50:18 +0100 (BST)

I've found the problem!!!

I was using an older version of httpd that doesn't have the parser of the HTTP requests!

now I was trying to compile the latest version of the http server raw but the compiler find an error in the declaration of the function
httpd_init_addr(ip_addr_t *local_addr)

in the httpd.c file. it says that "local_addr" is an undeclared variable.
I've tried to change the type ip_addr_t to ip_addr (as declared in the other modules of lwip) but the error still remains
--- Mar 5/7/11, Simon Goldschmidt <address@hidden> ha scritto:

Da: Simon Goldschmidt <address@hidden>
Oggetto: Re: [lwip-users] problem with web page with frames
A: "Mailing list for lwIP users" <address@hidden>
Data: Martedì 5 luglio 2011, 11:38


rocco brandi <address@hidden> wrote:
> Probably I didn't properly configure and use the httpd functions in my
> application task.
> How do I have to pass the fsdata.c file (that contain all my pages) 
> to httpd?  Do I have to call
> the http_find_file function for every html/shtml file I created or httpd
> automatically search for them once it has token the fsdata file?

If you haven't modified the httpd sources from CVS contrib, the server should automatically find all files. You only need to create fsdata.c and compile httpd.c and fs.c (attention: this one includes fsdata.c, so don't compile/link fsdata.c separately), that should be it.

Have you tried a simple single-file HTML page (without frames, pictures or external js files)? Did that work correctly? If so, I could imagine that you do not have enough resources configured to allow parallel transfer of multiple files. In that case, the browser starting a new (parallel) request would lead to aborting a running request, so the files would never be fully sent to the browser...

Simon
--
Empfehlen Sie GMX DSL Ihren Freunden und Bekannten und wir
belohnen Sie mit bis zu 50,- Euro! https://freundschaftswerbung.gmx.de

_______________________________________________
lwip-users mailing list
address@hidden
https://lists.nongnu.org/mailman/listinfo/lwip-users

reply via email to

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