On Wed, Mar 3, 2010 at 11:33 PM, Andreas Volz <li...@brachttal.net> wrote: > I just try to change the news module to support HTTPS URLs. I modified > it to accept also https:// inputs, but as response I get: > > HTTP/1.1 302 Found^M Date: Wed, 03 Mar 2010 22:30:55 GMT^M Server: > Apache/2.2.3 (Debian) mod_python/3.2.10 Python/2.4.4 PHP/5.2.0-8+etch16 > mod_ssl/2.2.3 OpenSSL/0.9.8c mod_perl/2.0.2 Perl/v5.8.8^M Location: > https://it-gipfelblog.hpi-web.de/^M Content-Length: 217^M Connection: > close^M Content-Type: text/html; charset=iso-8859-1^M ^M <!DOCTYPE HTML > PUBLIC "-//IETF//DTD HTML 2.0//EN"> <html><head> <title>302 > Found</title> </head><body> <h1>Found</h1> <p>The document has moved <a > href="https://it-gipfelblog.hpi-web.de/">here</a>.</p> </body></html> > > I'm not really known of RSS feeds. Maybe it's this code: > > static int > _cb_feed_server_add(void *data, int type, void *event) > { > News_Feed_Document *doc; > Ecore_Con_Event_Server_Add *ev; > char buf[4096]; > > doc = data; > ev = event; > > /* check if the event is our event */ > if (doc->server.conn != ev->server) > return 1; > > DFEED(("Connection established after %d tries, sending request", > doc->server.nb_tries)); > > snprintf(buf, sizeof(buf), "GET %s HTTP/1.0\r\n", doc->feed->file); > ecore_con_server_send(doc->server.conn, buf, strlen(buf)); > snprintf(buf, sizeof(buf), "Host: %s\r\n", doc->feed->host); > ecore_con_server_send(doc->server.conn, buf, strlen(buf)); > snprintf(buf, sizeof(buf), "User-Agent: %s/v%d\r\n\r\n", > "Enlightenment News module", news->config->version); > ecore_con_server_send(doc->server.conn, buf, strlen(buf)); > > doc->server.waiting_reply = 1; > > return 1; > } > > I assume for HTTPS another sequence needs to be sended. Is someone > known of RSS and HTTPS and could help me what to send in this case?
From the answer, you need to start another request at https://it-gipfelblog.hpi-web.de/ (that what the Location variable and 302 code tell you). But why do you use Ecore_Con instead of Ecore_Con_Url, it would really be much more easy to use (just need to check the status and start another request). -- Cedric BAIL ------------------------------------------------------------------------------ Download Intel® Parallel Studio Eval Try the new software tools for yourself. Speed compiling, find bugs proactively, and fine-tune applications for parallel performance. See why Intel Parallel Studio got high marks during beta. http://p.sf.net/sfu/intel-sw-dev _______________________________________________ enlightenment-devel mailing list enlightenment-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/enlightenment-devel