View Single Post
Old 08-26-2008, 06:15 PM   #41
Ret
Connoisseur
Ret has a complete set of Star Wars action figures.Ret has a complete set of Star Wars action figures.Ret has a complete set of Star Wars action figures.Ret has a complete set of Star Wars action figures.Ret has a complete set of Star Wars action figures.
 
Ret's Avatar
 
Posts: 81
Karma: 480
Join Date: Dec 2004
Quote:
That's my problem! (in bold above); my reader is at IP_address_1 and Linreb and Privoxy are at IP_address_2. I will try your suggestions and experiment more
I don't see why that would be a problem. That should work. When things are run locally, maybe the packets don't get routed correctly to privoxy if you don't use the local loop 127.0.0.1.

Quote:
Job well done, Ret! I'd give you more karma, but the system here is not allowing me to do so soon after already giving you karma!
I just realized about those karma points!. Didn't know they existed! What are they for?

Sure, you can code some proxy features into Linreb and get rid of privoxy. You'll have to work on linreb.c. There's an if..then that handles GET requests. Take a look here:
Code:
// if it is a request for bookshelf.ebooksystem.net,
						// then serve our page

						if (strstr(orl,BOOKLIST_PREFIX))
						{
								handle_booklist_request(rs,orl,orl+
												strlen(BOOKLIST_PREFIX));
.
.
.
.
.

else
				{
					// just print the first line, probably not a
					// GET request
					char line[1024];
					char *a, *b;

					for (b=buf,a=line; *b ; /* no increment */)
					{
							if (*b == '\r')
									break;
							*a++ = *b++;
					}
					*a='\0';
					if (verbose)
					{
							printf("%s\n",line);
					}


					not_found(rs);
				}
Ret is offline   Reply With Quote