[mythtv] [PATCH] Mythvideo IMDB grabber

Mikael Magnusson mikaelmagnusson at tjohoo.se
Wed Sep 3 04:06:55 EDT 2003


On Tue, Sep 02, 2003 at 10:09:18AM -0500, John Danner wrote:
> Not sure if things have changed (as far as MythTV's compatability to QT 3.0), 
> but the QHttpRequestHeader is not in QT 3.0, which is the reason the User-
> Agent is coupled with the GET request.
> 
> Having not seen the error, IMDB was always weary of unknown User-Agents. This 
> is the reason the User-Agent was in the GET request initially, but I'm 
> suprised how this suddenly broke. Did you try a different User-Agent within 
> the existing code?
> 
> -John

When I were debugging with ethereal, I discovered that sometimes all 
HTTP headers appeared on the first line of the GET request together with 
the path. When they appeared on separate lines, there was an extra line 
reading " HTTP/1.0" last. I didn't dig deeper into what was the cause. 
But since QUrlOperator weren't design to allow custom headers, I think 
the best solution was to use QHttp instead. 
It wasn't necessary to change the User-Agent after I changed to QHttp.

Mikael M.


More information about the mythtv-dev mailing list