[PHP] POST to port 443 (SSL)

2001-08-27 Thread Patrick Calkins

Hello,
I am trying to use the UPS Online Tools, the XML version. This requires you
POSTing an XML document to their Tools server, which is SSL enabled. I am
having a problem getting this to connect in PHP (4.0.6) on my server (Apache
1.3.20). In my scripts, I use
$Socket = fsockopen (www.ups.com, 443, $errno, $errstr);

if (!$Socket)
die (Error bla bla bla);

fputs ($Socket, GET /ups.app/xml/Rate HTTP/1.0\r\n\r\n);
...
...
If you point your browser to https://www.ups.com/ups.app/xml/Rate you will
see a response. But this code seems to just time-out. If I change the port
443 to port 80, I will get a response. What am I missing for it to talk to
an SSL port??

Thanks!
Patrick
[EMAIL PROTECTED]
** remove the _xxx_ to reply

--
Patrick Calkins
OEMSupport.Com, Inc.
** please remove the _ to reply **



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




[PHP] Re: begginer needs help

2001-08-30 Thread Patrick Calkins

Sure, you should just (for Windows) download the Apache web server for
windows, and get the PHP for windows off of php.net. Then you can run a
'local' server that processes your PHP code. Or do the same for a Unix
machine...

--
Patrick Calkins
OEMSupport.Com, Inc.
** please remove the _ to reply **
Nikola Veber [EMAIL PROTECTED] wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
 I have been doing some amateur web-design by now, but I decided to learn
 something like php. I was wondering if there is a way to test php code
without a
 server(on local computer).

 Thanx in advance

 Nikola Veber





-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




[PHP] How to get PHP to do a POST??

2001-06-26 Thread Patrick Calkins

Hello all!
Here is an interesting problem that I can not solve, maybe one of you know??
Here is what I'm trying to do. I sell a lot of items on eBay, and lots of
people ask me for a quote on shipping. We ship via UPS and I go to their
site a lot to lookup rates. I decided to make my own web page that links
into UPS' with most of the fields already pre-set, and all I want to do is
give the user back a total for shipping. I need to manipulate what comes
back from UPS first, so I can add to the shipping price to cover materials,
etc, then give the final numbers back to the end user. This is where I have
a problem.
I was able to have my page act as a user-agent, and do the submit itself,
however on UPS's site, their submit button is not a button, but rather an
image. Since a button is easy to know what values are getting set (ie
name=Submit value=getinfo), I did not know what vars the image-submit
was setting, since there was no 'value' variable, only a 'name' variable. I
tried it on my own server and found that php assigns the values 'name_x' and
'name_y' giving us the xy values of where the user clicked, but UPS does
not use PHP, so I don't know what their software sets the submit values to
hence it does not work correctly. Their form just thinks something went
wrong and displays the beginning again. If I just include their submit
button on my form, then all works fine, except for the fact that I can't
intercept the data comming back from UPS so that I can adjust the prices.
Any idea on how to do this???

Thanks and sorry if this seems long-winded...



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




Re: [PHP] search for a better php source code viewer

2001-06-27 Thread Patrick Calkins

You should try EditPlus !!! I love it!
http://www.editplus.com/
It runs on Win95/98/2000/NT and will create a Unix/Mac/PC file. Has custom
syntax highlighting, spell checker, integrated web browser, etc, etc. It
handles PHP, ASP, Perl, C++, and more...


scott [gts] [EMAIL PROTECTED] wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
 im a textpad fan.  (for windows)
  http://textpad.com/

  it supports custom syntax hilighting,
  line numbers, and a ton of other features
  that i use :)


   -Original Message-
   From: Tyler Longren [mailto:[EMAIL PROTECTED]]
   Sent: Tuesday, June 26, 2001 10:26 AM
   To: [EMAIL PROTECTED]; php
   Subject: Re: [PHP] search for a better php source code viewer
  
  
   I suggest ConTEXT.  It's free, and it's for windows.
   http://www.fixedsys.com/context
  
   And for Linux, I suggest Nedit.
   http://www.nedit.org/
  
   Tyler


 --
 PHP General Mailing List (http://www.php.net/)
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 To contact the list administrators, e-mail: [EMAIL PROTECTED]




-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




Re: [PHP] How to get PHP to do a POST??

2001-06-28 Thread Patrick Calkins

AH! Thank you for this info! This was exactly the problem! When I changed
the name_x to name.x, it worked, and UPS' site gave me back what I was
looking for. Thanks again, you're a lifesaver!

-- Patrick

Richard Lynch [EMAIL PROTECTED] wrote in message
046101c0fee3$a5d4ec80$6401a8c0@Lynchux100">news:046101c0fee3$a5d4ec80$6401a8c0@Lynchux100...
  tried it on my own server and found that php assigns the values 'name_x'
 and

 Those are really name.x and name.y in HTTP, but since . is not allowed
in
 a PHP variable name, you get _ instead.

 So UPS is using, almost for sure, name.x and name.y in their variables.

 (Well, they probably have something else as well, but if you give them
 name.x and name.y, they'll convert it like they always do.)

  button on my form, then all works fine, except for the fact that I can't
  intercept the data comming back from UPS so that I can adjust the
prices.

 Search the archives for Rasmus' posttohost function from way, way, way
 back when.

 --
 WARNING [EMAIL PROTECTED] address is an endangered species -- Use
 [EMAIL PROTECTED]
 Wanna help me out?  Like Music?  Buy a CD: http://l-i-e.com/artists.htm
 Volunteer a little time: http://chatmusic.com/volunteer.htm



 --
 PHP General Mailing List (http://www.php.net/)
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 To contact the list administrators, e-mail: [EMAIL PROTECTED]




-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]