jErk` Posted April 7, 2010 Share Posted April 7, 2010 (edited) Hi, imho RS does not properly handle EPG uploads while using HTTP AUTH. Seems like it never returns 200 or what-so-ever-code after the initial 401. 1) usual request w/o auth: 2) request with auth: The "200" reply is deceptive as it is forced by Fiddler after a (300ms) timeout. Maybe I got something wrong ... any thoughts appreciated. Regards, jrk edit: "DVB Service V1.5.0.101 (beta)" edit2: Uhh, btw, that's not an expect-100 based error (; Edited April 8, 2010 by jErk` Link to comment
Lars_MQ Posted April 8, 2010 Share Posted April 8, 2010 I'm sure it does work as exspected. Just checked it with wireshark and the 200 answer is there. maybe the software you use is not working correctly? Link to comment
jErk` Posted April 8, 2010 Author Share Posted April 8, 2010 I'm sure it does work as exspected. Just checked it with wireshark and the 200 answer is there.maybe the software you use is not working correctly? Hm. So it seems to be either a problem with me or with .net WebClient vs. RS (: just 4 fun: C:\>wcrctst -host:http://192.168.1.1/cgi-bin/EPGimport -user:admin -pass:password [19:44:28] Webclient (Preauth): admin:password@http://192.168.1.1/cgi-bin/EPGimport [19:44:28] Response: <HTML><HEAD><TITLE>DVBViewer Recording service</TITLE></HEAD> <BODY><H2>Your data has been imported.</H2></BODY></HTML> --------------------------------------------------- [19:44:28] Webclient (Default): admin:password@http://192.168.1.1/cgi-bin/EPGimport [19:46:09] *** Caught: Timeout für Vorgang überschritten bei System.Net.WebClient.UploadDataInternal(Uri address, String method, Byte[] data, WebRequest& request) bei System.Net.WebClient.UploadData(Uri address, String method, Byte[] data) bei wcrctst.Program.WebClientRequest(String u, String p, Uri uri, Boolean doPreAuth) wcrctst_src.zipwcrctst.zip Further to this "Basic-Auth" I can do two seperated requests with the base class. First HEAD then POST which works, too. "Unified" they don't, odd?! As I can "workaround" that I'm posting mostly out of curiosity and maybe it'll help someone. Regards, jrk Link to comment
Lars_MQ Posted April 8, 2010 Share Posted April 8, 2010 Well it is all the same code. The authentification is done absolutly transparent for the recording service by the ics framework I'm using... What does wireshark show in a capture? Link to comment
jErk` Posted April 9, 2010 Author Share Posted April 9, 2010 I don't wanna be a pain in your neck with this one... Custom Renderer & co are more important. Herewith its documented behaviour, basic example code exists, digest workaround through httpWebRequest available. Well it is all the same code. The authentification is done absolutly transparent for the recording service by the ics framework I'm using...What does wireshark show in a capture? For the books, wireshark: My best guess is: you 401' right after the headers but don't discard the chunk-junk and (so) miss the last gray request which finally timeouts the socket. Nice weekend! Jan Link to comment
Recommended Posts