I am trying to implement talk directly to the fedex servers so i can use
there online services. I need to first establish an SSL connection then
send some information to the fedex servers and wait for and process the
response.
I have seen some code that will allow me to recieve info over ssl and some
that will allow me to send info over ssl but not both.
Thanks in advance for any help,
~Logan
I have attached the VB sample code fedex provides
----------
Private Sub Command1_Click()
qq$ = Chr$(34) 'The " character
'DNS name of FedEx server
'contact FedEx for correct server name and port
SvcAddr = "SSLserver.fedex.com"
SvcPort = 8000
SvcName = "/GatewayDC"
' Set proxy - Examine this method to set specific proxy address
WinHttpReq.SetProxy HTTPREQUEST_PROXYSETTING_DIRECT
'Specify https for Secure Sockets
RequestHeader = "https://" + SvcAddr + ":" + SvcPort + SvcName
' Open an HTTP Request.
WinHttpReq.Open "POST", RequestHeader, False
' Substitute your Company name for MyApplication
WinHttpReq.SetRequestHeader "User-Agent", "MyApplication"
WinHttpReq.SetRequestHeader "Content-type", "image/gif"
WinHttpReq.SetRequestHeader "Accept", "image/gif, image/x-xbitmap,
image/jpeg, image/pjpeg, */*"
'A simple 402 tracking transaction
APITrans = "0," + qq$ + "402" + qq$ + "29," + qq$ + "821343443862" + qq$
+ "99," + qq$ + qq$
' Send the HTTP Request.
WinHttpReq.Send APITrans
' Put status and content type into status text box.
Text1.Text = WinHttpReq.Status & " - " & WinHttpReq.StatusText
Text2.Text = WinHttpReq.ResponseText
End Sub
--------------------------