Re: [PHP] Opening a socket and sending GET data

2002-11-22 Thread Todd Cary
Chris - Before PHP 4 came out, I needed to branch to a page from within the code (I know you can now cache the page).  So, I have many applications out there using my POST version which has work flawlessly.  Then I decided that in some cases, I would like to use the GET (saves me checking to s

Re: [PHP] Opening a socket and sending GET data

2002-11-22 Thread Chris Shiflett
Your request looks fine. What are you doing with $query once you have constructed it? Another question worth asking is what is your ultimate goal here? I'm not sure performing a manual request is necessary, but maybe it is. Chris --- Todd Cary <[EMAIL PROTECTED]> wrote: > # now we build our qu

Re: [PHP] Opening a socket and sending GET data

2002-11-22 Thread Todd Cary
Chris - I seem close, but I am still getting a clobbered "page".  For debugging, I sent the query to a file so that I can check it moer accurately and this is what I am getting (for readability, I added the CRLF after the "?" in this email): GET http://209.204.172.137:80/_calendar/php/selecte

Re: [PHP] Opening a socket and sending GET data

2002-11-22 Thread Chris Shiflett
--- Todd Cary <[EMAIL PROTECTED]> wrote: > I must be missing something because when I execute the > following code, open the socket, and send the query, > the form that the info is going to gets created but it > is corrupted. Do you see any obvious error? Yes, I do. It was likely due to a misinte

Re: [PHP] Opening a socket and sending GET data

2002-11-22 Thread Todd Cary
Chris - I must be missing something because when I execute the following code, open the socket, and send the query, the form that the info is going to gets created but it is corrupted.  Do you see any obvious error? Todd         if (!empty($request)) {       $path = $path . "?" . urlenco

Re: [PHP] Opening a socket and sending GET data

2002-11-22 Thread Chris Shiflett
This is your same HTTP request using the GET method rather than POST to send the same data. GET http://209.204.172.137/_calendar/php/selectevent.php?pa_county=&reenter_page=1&sel_from_mo=November&sel_from_dy=22&sel_from_yr=2002&sel_to_mo=December&sel_to_dy=06&sel_to_yr=2002 HTTP/1.1 Host: 209.204.

[PHP] Opening a socket and sending GET data

2002-11-22 Thread Todd Cary
I am able to open a socket and send POST data, however I do not know the format of doing the same for the GET method.  Here is my POST Query: Query: POST http://209.204.172.137:80/_calendar/php/selectevent.php HTTP/1.0 Accept-Language: en-us Host: 209.204.172.137:80 Connection: close Content-