Re: connection to server via HTTP & GET/POST method in vc++




Richard Heathfield <rjh@xxxxxxxxxxxxxxx> wrote in message
news:HY-dnbUlRP0G9QLYRVnytQA@xxxxxxxxx
santosh said:
rup wrote:

Hello,
This is my first application on socket programming in vc++. I am facing
problem that how to make connection to server, & make GET/POST request
by HTTP.
Please help me. Its urgent....
Thanks

Since this is a Microsoft specific question,

The fact that he's using VC++ is less significant, I think, than the fact
that he's trying to learn how to do network programming. His best bet is
to
learn about sockets from "Unix Network Programming", with the minor tweaks
needed for getting it to work under Windows being a valuable part of the
learning experience.

Don't think so, dude...

Just because he THINKS his problem has to do with "socket
programming", what he specifically said he wanted to do was
"make a connection to a server, & GET/POST request by
HTTP".

This again is the old idea of somebody asking "how do I drive
to Chicago?", you tell them to learn how to cast an engine block...

Then he can learn about HTTP from the relevant RFC.

This will be a definite help, but here's the actual answer:

1. Go to the MSDN web-site, specifically you should try:
http://msdn.microsoft.com/library/default.asp?url=/library/en-us
/wininet/wininet/portal.asp
2. Download the "wininet" API (or other equivalent Microsoft
Internet client-server API) for absolutely friggin' free
3. Use it as directed in the documentation (a knowledge of
HTTP is somewhat helpful here when trying to puzzle out
Microsoft's particular API implementation of Internet protocols)

The important thing is if he just wants to write an application that
GETs/POSTs information on the "Internet", that he not waste time
re-inventing the metallurgy of "sockets" and the HTTP protocols,
since it has already been done for him.

The other important warning I must give him is
to be very wary of the many "open source" goofball HTTP
non-implementations that infest the nooks and crannies of
the Internet, crap that doesn't work, crap that never will
work, half-written crap written by retards with idiotic non-documentation
that ultimately just says, "We're a bunch of retards who have
no idea how to implement Internet protocols but in the generous
spirit of 'open source' we'll let you waste your time trying to use
something that doesn't work."

I can personally vouch that the Microsoft stuff, once you puzzle
out how to use it, works, and works flawlessly...

And I should probably point out, in the spirit of "topicness",
that "wininet" and other Microsoft Internet APIs actually are
C++, and MUST be compiled by a C++ compiler...

---
William Ernest Reid



.



Relevant Pages

  • socket programming
    ... How do I send a data structure over the internet ... I'm new to socket programming. ...
    (comp.lang.c)
  • socket programming
    ... How do I send a data structure over the internet ... I'm new to socket programming. ...
    (comp.os.linux.networking)
  • Re: socket programming
    ... How do I send a data structure over the internet ... >I'm new to socket programming. ...
    (comp.os.linux.networking)
  • More People Turn to the Web to Watch TV
    ... about creating fully interactive television that would allow viewers to ... Internet programming is beginning ... Internet to offer video news updates and reports that do not fit in the ...
    (rec.arts.tv)
  • Re: Social Engineering
    ... This is some of the most inane rambling I've ever seen on the internet. ... social engineering is often effective. ... > television news PROGRAMMING offered by the same NWO powerbrokers who ... > client software and an egalitarian linking of those compute-nodes into ...
    (comp.security.misc)