how do i seng requests and handle answers of an http server?

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
User avatar
pedrotuga
Forum Contributor
Posts: 249
Joined: Tue Dec 13, 2005 11:08 pm

how do i seng requests and handle answers of an http server?

Post by pedrotuga »

Ok.... i am trying to write a blogger client. I red the blogger api documentation and stuff, but i got stuck in the very basic starting.

Like... how do i send requests and how do i recive the answers?

There should be a simple way to do this on the command line.
Also, how do i do it in a php script?
User avatar
volka
DevNet Evangelist
Posts: 8391
Joined: Tue May 07, 2002 9:48 am
Location: Berlin, ger

Post by volka »

What blogger api?
User avatar
pedrotuga
Forum Contributor
Posts: 249
Joined: Tue Dec 13, 2005 11:08 pm

Post by pedrotuga »

I wouldnt mind using any.
The XML-RPC looks like the easiest one. But they came up with a new one, ant then yet another new one.

i would use any, i guess its a mater of parsing XML, being it rpc, atom, whatever.

But the stupid thing is the fact of me not knowing how to send a request to a server :oops: :oops: :oops:

How do i do that?
User avatar
Ambush Commander
DevNet Master
Posts: 3698
Joined: Mon Oct 25, 2004 9:29 pm
Location: New Jersey, US

Post by Ambush Commander »

The XML-RPC library you choose to use should do it for you.
User avatar
pedrotuga
Forum Contributor
Posts: 249
Joined: Tue Dec 13, 2005 11:08 pm

Post by pedrotuga »

Ambush Commander wrote:The XML-RPC library you choose to use should do it for you.
It might, i will guive a look on their documentation... but still.. how do I send HTTP requests?

BTW... any sugestions on a XML RPC library? It looks like the main one have been forked.
User avatar
pedrotuga
Forum Contributor
Posts: 249
Joined: Tue Dec 13, 2005 11:08 pm

Post by pedrotuga »

Ok... i fugure out i can do it using libcurl. Thats kind of ok but, does anybody knows how do i send a raw header to an address?
Post Reply