PDA

View Full Version : Can anyone explain how an http protocol is made?


Barry Lamb
10-13-2002, 04:13 AM
Hi,
I'm having a problem making an http protocol. I have all the XML tags and the information that I need to send to the server, but can't for the life of me figure out how to set the headers and send the information to the server via an http protocal.

Any help would be greatly appreciated.
Thanks

I can be emailed at
sales@bllamb.com

FotoPlasma
10-13-2002, 05:30 AM
I'm really not sure of the question, but this might help, somehow...

http://www.ietf.org/rfc/rfc2616.txt

Barry Lamb
10-13-2002, 02:08 PM
Hi,

Thanks,
The part that is confusing me is the actual sending of the information via an http protocol.

What I'm wanting to do is send a webform to an URL.
I have the info to send, just can't seem to send it.


When I send the information via formail, I would use
<FORM ACTION ="/cgi-bin/formmail.pl"METHOD="POST">

What would be form action be for sending to a URL.
<FORM ACTION = http://www.url goes here> ????



Thanks.

rbayer
10-13-2002, 02:21 PM
It should be the same syntax as the example you gave that works. As far as I know, you can just write

<FORM ACTION = "http://www.your-url.com/path-to-script/script.pl" METHOD="POST">

html/xhtml just resolves the "/cgi-bin/formmail.pl" to the full address based on the path of the current page--it's just shorthand that makes maintainance a little easier.

If this isn't what you're looking for, or if it doesn't work, could you explain what exactly you are trying to do? Are you trying to send data to another webserver from your site?

Barry Lamb
10-13-2002, 02:37 PM
Thanks,
I think I see now what I'm missing.

I need a script to put in a folder on my website to reference too?

Any idea where I would get a script for this?

What I'm trying to do is send info to Ebay's API

Thanks,

Barry

rbayer
10-13-2002, 04:44 PM
Have you checked the eBay documentation? I'm not familiar with their system, but you shouldn't need any script on your side. You may need to pass in a user name/password somehow, but only eBay could tell you the specifics for their system.

Barry Lamb
10-13-2002, 05:59 PM
Hi,
Yes, I have all the documentation from ebay on what to send, but it doesn't give any info on the "how to send"

rbayer
10-13-2002, 08:40 PM
Originally posted by Barry Lamb
Hi,
Yes, I have all the documentation from ebay on what to send, but it doesn't give any info on the "how to send"

Well, the standard syntax for argument passing is:

script.pl?arg1=val1&arg2=val2&....

Hope that helps