Tried downloading a file on a specific location in a Non-proxy environment using InternetOpenURL() and InternetReadFile() API's. This worked fine. But when i try the same in Proxy Environment it fails. I tried doing HttpQueryInfo() and then checking the status for HTTP_PROXY_AUTH_REQD. This is successful but when i set the username and password for Proxy Authentication and retry, it still gives me status as HTTP_PROXY_AUTH_REQD. If I continue downloading the file then junk characters are downloaded and written to the file. Need help to make InternetOpenURL work in a Proxy Environment. (Please note that Proxy Server Details are not present with my application and i cannot bypass the Proxy Server) Thanks in advance. Ravi.
Ravi Jadhav
Posts
-
Using Wininet - Internetopenurl is not working in proxy environment -
Downloading a file using InternetOpenUrl in proxy environment (VC++ Wininet Library)Tried downloading a file on a specific location in a Non-proxy environment using InternetOpenURL() and InternetReadFile() API's. This worked fine. But when i try the same in Proxy Environment it fails. I tried doing HttpQueryInfo() and then checking the status for HTTP_PROXY_AUTH_REQD. This is successful but when i set the username and password for Proxy Authentication and retry, it still gives me status as HTTP_PROXY_AUTH_REQD. If I continue downloading the file then junk characters are downloaded and written to the file. Need help to make InternetOpenURL work in a Proxy Environment. (Please note that Proxy Server Details are not present with my application and i cannot bypass the Proxy Server) Thanks in advance. Ravi.
-
Facing problem while running exe created using 2005Thanks for the help. Re-distributable component for 2005 worked
-
Facing problem while running exe created using 2005I have converted my exisiting vc6 project to vc8 i.e. visual studio 2005. Now i have created the exe and try to execute that on other pc where VS 2005 is not installed. I tried with linking MFC dlls statically even that is also not working. Following error occurs when i execute the exe "The application failed to initialize properly (0xc0150002). Click on OK to terminate the application." Please help.
-
Self terminating/Killing applicationThanks I think this will suffice my requirement
-
Self terminating/Killing applicationIt would be Win32 or MFC application
-
Self terminating/Killing applicationI dont want the second instance. Can you please help me how to use IPC?
-
Self terminating/Killing applicationIt would be Win32 or MFC application
-
Self terminating/Killing applicationI have a requirement to create an application which will accept the command line parameter. Depening on the parameter passed to the application, it will start and stop. For Ex. on command prompt C:\>MyExe start This command will start the application for a given task. C:\>MyExe stop If MyExe is already running then the above command will stop it. Appreciate your help.
-
Activex in Windows serviceI want to use ActiveX developed using vc++ in a windows service. Please help me how to do that.
-
ActiveX in Windows ServiceI want to use ActiveX developed using vc++ in a windows service. Please help me.
-
passing a structure across DCOMI have declared a linked list(requirement is like that) which contains another list. Now i wanted to pass that linked across DCOM. For communication i am using connection point. Please help me out in this or provide any alternate solution.
-
Dynamic object creationHi.. In c++ how can i create a new object of a class depending on the contents of the string. Suppose a function is there which takes input argument as a string which is nothing but a class name and that function will return me a new object of that class. something like... char strClassName[] = "CTest"; CTest* pTest = new ?? now what will be replaced with ?? and i want to use that strClassName string. class CTest is an example i can replace that with any class name. Whatever the class name appears in the strClassName that class's object should get created. Something like RUNTIME_CLASS macro in MFC. in this macro it uses ## to parsing token. Same thing i want to achieve not using MFC. how can i do that. Thanks Ravi
-
Reflection in c++Hi I wanted to produce a mechanism like Reflection in c++ (without using dot net framework).can i do that..? How..? Is there any framework available to achieve this mechanism? Or simple i will provide a class name in a string to a function that function will return me a new object of that class. is it possible in simple C++ (Not using MFC or dot net). If yes please let me know also. Thanks in advance Ravi
-
OpenSSLI want to use OpenSSL in my current socket application and i want to remove the MFC socket i.e MFC dependency. Where can i get sample code for OpenSSL or the documentation which tell me what steps needs to follow while using OpenSSL. Thanks For your Help.
-
Crash in Relese Buildtried AFX_MANAGE_STATE also.. Not Working I got two Extention dlls, one DllOne.dll and another DllTwo.dll. I am handling menu clicks into DllOne.dll's mainfrm.cpp. into a function called Fun1(). In Fun1() i am trying to invoke a dialog from DllTwo.dll. There are two Dialogs into DllTwo.dll, For first Dialog its working fine in Release Build but the second one is not working (crashing into CreateDialogIndirect()). Both of these dialogs are working perfect in Deug build. Please Help
-
Crash in Relese BuildI got one extension dll, with its own resources. It is having two dialog into its resource. i am invoing these two dialogs on menu click. I handled it in mainfrm.cpp. Its not at all giving any problem to first dialog invocation but it is crashing in second dialog invocation.
-
Crash in Relese BuildIn release build my exe is crashing while invoking a dialog, its crashing in ::CreateDialogIndirect() function.:(( Can anybody help me. I got two Extention dlls, one DllOne.dll and another DllTwo.dll. I am handling menu clicks into DllOne.dll's mainfrm.cpp. into a function called Fun1(). In Fun1() i am trying to invoke a dialog from DllTwo.dll. There are two Dialogs into DllTwo.dll, For first Dialog its working fine in Release Build but the second one is not working (crashing into CreateDialogIndirect()). Both of these dialogs are working perfect in Deug build. Please Help Thanks
-
Facing problem while making one button as Default on PropertySheetThanks Bill Yes it worked out...:)
-
Facing problem while making one button as Default on PropertySheetThanks Bill. Here is the scenario. I am enabling the Next button as soon as user enters something into Edit control. I mapped a message of edit control ON_EN_CHANGE in this function i am checking edit control is empty or not. If it is not empty then i am getting a pointer to next button from Sheet by using GetDlgItem(ID_WIZNEXT) and calling EnableWindow(TRUE). Now it is working perfectly as far as Enbling concerned. I want Next button as Default as soon as it gets enabled. Once again Thanks.