Your Universal Remote Control Center
RemoteCentral.com
Philips Pronto Professional Forum - View Post
Up level
Up level
The following page was printed from RemoteCentral.com:

Login:
Pass:
 
 

Original thread:
Post 8 made on Tuesday August 3, 2010 at 02:55
BluPhenix
Long Time Member
Joined:
Posts:
December 2008
371
Hey Zed.

I know it works, but it's better if it's done in the apropriate way.

If you don't actually need http parsing and advanced http stuff you don't need the philips library (it has too much stuff in it for simple uses).
I wasn't talking about the socket.close() prontoscript function but about the close in (this is how a http header should look like):

GET / subfolder/subfolder HTTP/1.1[CRLF]
Host: www.google.com[CRLF]
Connection: close[CRLF]
User-Agent: your device[CRLF]
Accept-Encoding: gzip[CRLF]
Accept-Charset: ISO-8859-1,UTF-8;q=0.7,*;q=0.7[CRLF]
Cache-Control: no[CRLF]
Accept-Language: de,en;q=0.7,en-us;q=0.3[CRLF]


This is a sample of a http header. Everything else (http data) comes after this. The pronto doesn't need some fields. In the 3rd row you see a Connection: close command. This command tells that the current http connection will be closed after receiving a response.

If you use the pronto to connect to web sites some of the fields are reuired, otherwise your connection might be refused.

A nice tool to study the html headers:
http://web-sniffer.net/

The request for this thread looks like:
Connect to 216.250.177.3 on port 80 ... ok

GET /cgi-bin/mboard/prontopro/thread.cgi?3903 HTTP/1.1[CRLF]
Host: www.remotecentral.com[CRLF]
Connection: close[CRLF]
User-Agent: Web-sniffer/1.0.36 (+http://web-sniffer.net/)[CRLF]
Accept-Encoding: gzip[CRLF]
Accept-Charset: ISO-8859-1,UTF-8;q=0.7,*;q=0.7[CRLF]
Cache-Control: no[CRLF]
Accept-Language: de,en;q=0.7,en-us;q=0.3[CRLF]
Referer: http://web-sniffer.net/[CRLF]
[CRLF]


Sorry if it looked like I was getting "on you", didn't mean it like this.


Hosting Services by ipHouse