Manual for integrate IBP index in web or desk aplications
To accede from a program or web to the IBP index you must follow the next steps:
Reed the file tha contains the route GPS data (track)
Just acceding to the file and reading all of its content
Example in VB
Set f = fso.OpenTextFile(sfilename, ForReading)
BodyText = f.ReadAll
f.Close
Set f = Nothing
Send by “post”.
To send by post, the format must be exactly the same as if you send a web form.
We send the content that we have read using the post methode to the web:
http://www.ibpindex.com/esp/ibpresponse.asp
FILE: is the track content
The type of this data will be : “Content-Disposition: multipart/form-data;”
When you send this file content, you will have to add some more data:
MOD: It is the kind of track and the possible values are: Road or BTT
UDO: It is the scan origin and the value might be the web page from where it is sent the request or it might be the program name.
The type of this data will be: “Content-Disposition: form-data;”
Example in VB:
It is built the message body to send by post.
strHeader = "Content-Type: multipart/form-data boundary=" _
+ boundary + Chr(10) + Chr(13)
varPostData = boundary & vbNewLine & "Content-Disposition: form-data;
name=""MOD""" & vbNewLine & vbNewLine & “BTT” & vbNewLine
varPostData = varPostData & boundary & vbNewLine & "Content-Disposition:
form-data; name=""UDO""" & vbNewLine & vbNewLine & "PROGRAMA" & vbNewLine
varPostData = varPostData & boundary & vbNewLine & "Content-Disposition:
multipart/form-data; name=""fichero""; filename=""Mitrack.trk"" & vbNewLine & "Content-Type: text/plain;" & vbNewLine & vbNewLine & BodyText & vbNewLine & boundary & "--"
ReDim bytpostdata(Len(varPostData))
bytpostdata = StrConv(varPostData, vbFromUnicode)
Reading the answer that the web page gives back.
It is sent the content bytpostdata y strHeader by post to the direction and it is received as the answer the IBP index.




