-
June 25th, 2014, 04:40 AM
#1
HTTP Request
Can someone suggest me a way to use HTTP Request in pure VC++, without using any .NET framework?
-
June 25th, 2014, 05:26 AM
#2
Re: HTTP Request
Victor Nijegorodov
-
June 25th, 2014, 05:41 AM
#3
Re: HTTP Request
Best regards,
Igor
-
June 25th, 2014, 07:10 AM
#4
Re: HTTP Request
Originally Posted by VictorN
Thanks those links were helpful. Can you additionally suggest me, how can i communicate with a Chrome toolbar using this HTTPInterface?
-
June 25th, 2014, 08:06 AM
#5
Re: HTTP Request
AFAIK HTTPInterface is to communicate with WebInet (HTTP), not with the browser items.
Read the Chrome documentation if you want to communicate with a Chrome toolbar.
Victor Nijegorodov
-
June 25th, 2014, 09:32 AM
#6
Re: HTTP Request
Originally Posted by maverick786us
Can you additionally suggest me, how can i communicate with a Chrome toolbar using this HTTPInterface?
HTTP requests are issued by web client apps for communication with web servers. Chrome is not server, as it is a browser, and therefore it issues HTTP requests by itself.
You have to explain in detail what you really mean by "communicate with a Chrome toolbar"
Best regards,
Igor
-
June 30th, 2014, 08:18 AM
#7
Re: HTTP Request
Originally Posted by VictorN
The examples that you provided me uses WinINet class. I just came across this article.
http://msdn.microsoft.com/en-us/libr...(v=vs.85).aspx
Provided by my client, and he said that "WinINet does not support server implementations. In addition, it should not be used from a service. For server implementations or services use Microsoft Windows HTTP Services (WinHTTP)"
So is there a way i can make HTTP Request using Windows HTTP?
-
June 30th, 2014, 08:51 AM
#8
Re: HTTP Request
Originally Posted by maverick786us
...
So is there a way i can make HTTP Request using Windows HTTP?
Well, if you already have a working code using WinINet then you can port it to WinHTTP:
http://msdn.microsoft.com/en-us/libr...(v=vs.85).aspx
If not - then develop your "server implementations or services" using WinHTTP from the very begin.
Victor Nijegorodov
-
July 1st, 2014, 07:07 AM
#9
Re: HTTP Request
WinInet is by far the easiest method to implement simple HTTP request in part because the whole configuration is delegated to using the built- in internet config (the same one used as IE).
"porting" WinInet to WinHTTP is made overly simple in the document linked above. It's typically much more complex in practice to get your code to use WinHTTP and to get WinHTTP to just work. Especially if you need to deal with proxies, HTTPS and security in general, WinHTTP can quickly require a lot more code to do things.
Also note that WinHTTP is for the "client" side of the HTTP story (requesting/getting/downloading pages) and not for the server side (hosting a website). You wouldn't be the first to confuse the meaning of the word service/server in this context.
If you want to host a website/serve data via http, then you want the "Windows HTTP Server API" (http://msdn.microsoft.com/en-us/libr...v=vs.85).aspx).
Note that all of the above are higher level API's. YOu can also do everything you want by doing network communication over sockets (this is how a browser like Chrome does it). THe advantage of a socket implementation is that your code can be made portable to run on Linux or other OS, whereas the above api's are all exclusive to Windows platforms. Obviously, doing it with sockets means you'll have to handle all the low level stuff yourself.
-
July 3rd, 2014, 05:09 AM
#10
Re: HTTP Request
Originally Posted by OReubens
Note that all of the above are higher level API's. YOu can also do everything you want by doing network communication over sockets (this is how a browser like Chrome does it). THe advantage of a socket implementation is that your code can be made portable to run on Linux or other OS, whereas the above api's are all exclusive to Windows platforms. Obviously, doing it with sockets means you'll have to handle all the low level stuff yourself.
Thanks. Can you show me an example, where a network communication between Chrome and a VC++ DLL is established?
-
July 3rd, 2014, 05:18 AM
#11
Re: HTTP Request
Originally Posted by maverick786us
Thanks. Can you show me an example, where a network communication between Chrome and a VC++ DLL is established?
What do you mean by "communication between Chrome and a VC++ DLL"? What DLL?
Victor Nijegorodov
-
July 3rd, 2014, 06:22 AM
#12
Re: HTTP Request
Originally Posted by VictorN
What do you mean by "communication between Chrome and a VC++ DLL"? What DLL?
I have created a win32 DLL and I want to pass some arguments from the chrome Toolbar
-
July 3rd, 2014, 06:50 AM
#13
Re: HTTP Request
programmatically "doing" something with chrome browser or the chrome toolbar has absolutely NOTHING to do with HTTP requests.
-
July 3rd, 2014, 06:58 AM
#14
Re: HTTP Request
Originally Posted by maverick786us
I have created a win32 DLL and I want to pass some arguments from the chrome Toolbar
Well, first reread the post ##5,6,13.
Now, please choose whether we will still discuss here your problems with HTTP requests or you will start a new thread to discuss the problems about communicating with Chrome toolbar.
Well, we could do it parallel BUT in different threads because these two problems are absolutely diferent.
Victor Nijegorodov
-
July 3rd, 2014, 08:55 AM
#15
Re: HTTP Request
Originally Posted by OReubens
programmatically "doing" something with chrome browser or the chrome toolbar has absolutely NOTHING to do with HTTP requests.
IE and firefox can directly interact with a desktop application. But with Chrome and Safari, the only way to communicate with desktop applications is through TCP/IP.
Now there is already a 3rd party application. I have develop a Win32 DLL that will have an HTTP Interface, for which it will use WinHTTP. This DLL will simple communicate with the toolbar and store various parameters. So how can I accomplish this?
@VictorN, I apologize for prociging incomplete information in my previous post.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|