Log in

View Full Version : Which API's are used for connecting to website?


Flack
June 17th, 2004, 22:05
Hello,

I have an app that connects to a webpage to verify the name/serial number.

Is the best way to deal with this to break when the app connects to the webpage and then work from there? If it is, can someone tell me which API to break on?

I've never worked on an app that connects to verify the info, so Im not quite sure how they work. If the cgi returns a value, such as "Registration Failed", how would I go about finding that return value and changing it to a good value?

Thanx for all of the help
-Flack

Solomon
June 17th, 2004, 23:07
Please check the import table of your target.

Sometimes it uses WinInet API such as InternetOpenUrl()/HttpSendRequest().

Sometimes it directly uses low-level WinSock API to do this.

A network sniffer may help.

PhotoPaul
June 18th, 2004, 09:29
Try to break on winsock's send() API

Flack
June 18th, 2004, 20:11
Thanx for the tips guys.

I have another question while Im at it. If the app is connecting to a cgi app, is there a certain API that is used to get the result?

Since the name/serial is checked there, it must send back some result. How is this result returned?

Thanx again for the help

-Flack

dELTA
June 19th, 2004, 16:08
Nope, a cgi app is a completely normal http request like any other, it just happens to do some extra server side computation before returning the content, but this is completely transparent to the client.

comelysouthchin
July 1st, 2004, 00:17
Hi ,you had better read something about http protocol , when you connect to a web site , IE will send some requirement to the web host . then the web server will analyse the requirement . how to connect to web server ? just like any other socket programme , use connect ,send some requirment . read something about http protocol ,you will find the result of your question .