Jump to content

EPG Upload with AUTH


Recommended Posts

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:

post-49732-1270678987_thumb.jpg

 

2) request with auth:

post-49732-1270679022_thumb.jpg

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 by jErk`
Link to comment

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
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

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

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:

post-49732-1270855820_thumb.png

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
×
×
  • Create New...