Hey,

this mail is a small summary of issues I have seen while working with the 
networking code and making my platform(s) work.

1.) Get the InspectorClient going (it is really simple) and then be brave and 
then call Settings::setDeveloperExtrasEnabled(true) on your page. You might 
see immediate crashes, which you can fix. Once you can load pages with the 
Inspector on you can easily see if you have a Request and Response in the 
networking view, otherwise you have something wrong in your reporting and can 
fix it.

2.) Cookies:
        - The CookieJar and its methods are normally only used for JS code.
        - Cookie parsing can be tricky
        - The CookieJar get method should return all cookies (otherwise 
mail.yahoo.com will make fun out of you). ;)
        - Depending on your networking lib you might need/want to set the 
cookies 
from the Jar on the request

3.) Redirections:
        - ResourceHandleClient::willSendRequest has an in/out parameter, as the 
        
          API documentation is saying, honor that :)
        - If you wonder what to do if you get a redirect on POST, check 
          MainResourceLoader::isPostOrRedirectAfterPost for the answer.

4.) Use WebKitTools/Scripts/run-webkit-httpd and or 
WebKitTools/Scripts/run-webkit-tests and watch the smoke and smell your 
platform is producing. A patch to make both work on GNU/Ubuntu/Debian/Linux 
can be found here[1] and I hope it will be in trunk soon.

anyway, I hope this is helping someone.
        z.

[1] 
http://code.staikos.net/cgi-bin/gitweb.cgi?p=webkit;a=commit;h=436bf0191c2400e55d906a160cdced357e59cfb7

PS: This is the third attempt...
_______________________________________________
webkit-dev mailing list
[email protected]
http://lists.webkit.org/mailman/listinfo/webkit-dev

Reply via email to