Categories: MSDN / DotNet / Java / Scripts / Linux / PHP Ask - La ask - La Answer

Use XML sockets to post to asp page

Hello,

I'm currently working with an xml script I found that retrieves television
listings off the zap2it.com website. The script opens a socket to the website
two times - the first to set up what channels and what not are displayed
and the second to get the tv listing. Then the script parses the listings.

My problem is that the script can only get the tvlistings from the current
hour on, however on the the actually zap2it page they use a form to allow
the user to select date, time, etc.

Is there anyway I can send variables (i.e. startime, date, etc) through the
xml as if they were posted on a form or any ideas how I might work around
this.

If you need the script or any more details, feel free to email me at razorlite@yahoo.com.
Thanks for any help you can be.
[843 byte] By [Razorlite] at [2007-11-9 15:28:38]
# 1 Re: Use XML sockets to post to asp page
If you are using low level sockets, then follow the HTTP 1.1 specification
for sending a GET or a POST request to the server. You can test this manually
by connecting to your remote server using telent over port 80 and entering
all of the HTTP headers and content. Google for telnet, HTTP, 80 POST, etc
to see an example of this.

"Razorlite" <xml.@127.0.0.1> wrote:
>
>Hello,
>
>I'm currently working with an xml script I found that retrieves television
>listings off the zap2it.com website. The script opens a socket to the website
>two times - the first to set up what channels and what not are displayed
>and the second to get the tv listing. Then the script parses the listings.
>
>
>My problem is that the script can only get the tvlistings from the current
>hour on, however on the the actually zap2it page they use a form to allow
>the user to select date, time, etc.
>
>Is there anyway I can send variables (i.e. startime, date, etc) through
the
>xml as if they were posted on a form or any ideas how I might work around
>this.
>
>If you need the script or any more details, feel free to email me at razorlite@yahoo.com.
>Thanks for any help you can be.
Jim J. Marion at 2007-11-11 23:29:43 >