tags:

views:

39

answers:

1

I have 2 questions on this 1st My code always seems to hit a 401 forbidden error when i try to post data to a http link 2nd what is the best way to pull back and display xml data from the stream that i should be getting back

Many thanks

A: 
Tomalak
as far as im aware the Credentials are correct this is why i am supposed to be getting back<?xml version="1.0"?><GetVehicleLocationResponse> <Vehicles> <Vehicle> <Ack>Success</Ack> <Registration>AB05 CDE</Registration> <UniqueID>206706046</UniqueID> <Status>Driving</Status> <Latitude>53.728427778</Latitude> <Longitude>-1.462761111</Longitude>
kevinw
Problem is tho that the error you are getting indicates the credentials either are not correct, or they are not being passed as expected. For displaying your XML you will most likely want to parse it to display it back in a way that is meaningful.
David Yancey