logo       
Google Custom Search
    AddThis Social Bookmark Button
-->

Re: New GpsDrive Beta 2.10pre2 - Fixed Proxy Support: msg#00018

Subject: Re: New GpsDrive Beta 2.10pre2 - Fixed Proxy Support
Hello Robin!

Thanks again! It works for me also

I just uploaded a new pre2, so from now on 2.10pre2 is able to download
with proxy again.

Am Sa, den 17.07.2004 schrieb Robin Cornelius um 18:50:
> On Saturday 17 Jul 2004 16:19, Fritz Ganter wrote:
> > Hello!
> >
> > I just uploaded gpsdrive2.10pre2 to http:/www.gpsdrive.cc
> >
> > From now on, the RPMs are compiled for SuSE 9.1, so the RPM may not work
> > for older distributions.
> > I included the last 2 posted patches. If you find that a patch is
> > missing please tell me.
> >
> > Because I got a email from topozone.com I had to remove the code for
> > using the Topozone maps.
> >
> > Please test this version and report any problems.
> 
> Hi Fritz,
> 
> Attached is a patch against 2.10pre2 that fixes proxy support. I have tested 
> only with local proxy server squid but i see no reason why the fix is not 
> generic.
> 
> There were two problems, one in downloadstart_cb() around line 7443 you had
> g_strlcpy (sn, actualhostname, sizeof (sn));
> 
> this would set sn to be the name of the expedia render server, which is fine 
> for direct connections but if you use a proxy this must be the proxy address.
> 
> Secondly, after the proxy recieved the request the GET was incorrect and only 
> had the relative path of the web page required from the render server, a 
> proxy requires a FQDN so by formating the GET as 
> g_snprintf (url2, sizeof (url2), "GET http://%s/%s HTTP/1.1\r\n", hn,url);
> 
> The proxy server accepts the request
> 
> Regards
> 
> Robin
> 
-- 
Fritz "der mit dem Linux tanzt" Ganter         http://www.gpsdrive.de
 Key fingerprint = 555A DDBB 3985 16FF CD41  2031 C485 1783 BF34 728F

Attachment: signature.asc
Description: Dies ist ein digital signierter Nachrichtenteil

<Prev in Thread] Current Thread [Next in Thread>