473,387 Members | 1,501 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,387 software developers and data experts.

using winHttp with client sertificates

h

when i try to get data from site with clients sertificates with winHttp, I have a problem with result encoding (ru). Its OK with any sites without client sertificates, and its OK when i try to do it manualy with IE

any help would be really great

script looks like that

Set oHttp = CreateObject("WinHttp.WinHttpRequest.5")
oHttp.Option(2) = "Windows-1251" ' WinHttpRequestOption_URLCodePage = 2
oHttp.Open "POST", "https://...", 0

oHttp.SetRequestHeader "Accept-Language", "ru"
oHttp.SetRequestHeader "Accept-Charset", "Windows-1251"
oHttp.setRequestHeader "Accept-Encoding", "gzip, deflate"

oHttp.setRequestHeader "Content-Language", "ru"
oHttp.setRequestHeader "Content-Charset", "Windows-1251"
oHttp.setRequestHeader "Content-Encoding", "gzip, deflate"
oHttp.SetRequestHeader "Content-Type", "application/x-www-form-urlencoded; charset=Windows-1251"

oHttp.setRequestHeader "USER_AGENT", "Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.0; .NET CLR 1.1.4322)"

oHttp.Send

Jul 19 '05 #1
0 2582

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
by: yukeshean | last post by:
hi, I'm helping a company to develop a merchant site for online transaction. Since the company already registered with Telemoney payment gateway to handle the credit card verification, therefore...
1
by: yukeshean | last post by:
how to use winhttp with asp to talk to Telemoney payment gateway server? how to use winhttp to make few communication link with telemoney and the links involve more than 1 asp page?
1
by: Francis | last post by:
I have the following codes in an asp file. This page can receive the XML string send from client. ================================================== Dim objReceive Set objReceive =...
0
by: Richard | last post by:
I am having trouble accessing a web page programmatically from .NET. Our proxy server is determined by a PAC script and all the standard .NET (and WinHttp) proxy techniques don't work for scripts....
0
by: Vijay | last post by:
Hi, I am trying to use Winhttp for making a SOAP request from a client to a Server, windows 2003. I have 2 issues: 1. I am making a Winhttp, HTTP request and I keep getting this error,...
1
by: saravana kumar | last post by:
Hai , I am new to winHTTP. Can anyone point me out a good website to find few startup samples and details about winHTTP. Please help me out to start winHTTP. :confused: Any help appreciated....
1
by: Gaetan | last post by:
I'm doing a prrof of concept to develop an application to run under WinPE. The application will use WinHTTP to send requests to an ASPX file running IIS 6.0 My problem is that I do not know how...
1
by: flyingchen | last post by:
The problem is about the new version of the WinHttp.dll. My Code like this : public string Do(string Method,string Url,Object Async) { WinHttpRequest winHttpReq = new...
4
by: Ted Lyngmo | last post by:
Hi! I'm new (but please do continue reading) to C++ in the VS environment and wanted to create a standalone program (or preferably, a static library, compatible with other Windows compilers)...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.