Framework EDI Reference. Methods and Properties
ediHttpCfg.ReceiveReferrer

Sets or gets the referrer for HTTP request.

Syntax:

Example:

Dim oEdiDoc As Fredi.ediDocument
Dim oTransports As Fredi.ediTransports
Dim oTransport As Fredi.ediTransport
Dim oHttpCfg As Fredi.ediHttpCfg
Dim sReferrer As String

' Create instance of Framework EDI.
Set oEdiDoc = New Fredi.ediDocument

' Get transports object
Set oTransports = oEdiDoc.GetTransports

' Create single transport object for receiving document.
Set oTransport = oTransports.CreateTransport

' Get the HTTP config object.
Set oHttpCfg = oTransport.GetHttpCfg

' Get the HTTP referrer
sReferrer = oHttpCfg.ReceiveReferrer
Debug.Print "HTTP Referrer: " & sReferrer

' Change HTTP referrer
oHttpCfg.ReceiveReferrer = "referrer"

' Set required parameters for the download.
oTransport.SetHTTP
oTransport.User = "Username"
oTransport.Password = "password"
oTransport.Address = "255.255.255.1"
oTransport.TargetPath = "/test_folder/"

' Send file.
oTransport.Receive "SampleEdiX12_850.X12"

oEdiDoc.Save App.Path & "\Output.Txt"

MsgBox "Done"