Hi Josh, Thanks- that along with Aaron's suggestions has solved this error. And to think, I had added these blank spaces since I thought the header was incorrectly reading the ID and password with no blank spaces.
regards, Karuna On Thu, Aug 9, 2012 at 9:17 PM, Josh Thompson <[email protected]>wrote: > -----BEGIN PGP SIGNED MESSAGE----- > Hash: SHA1 > > On Thursday, August 09, 2012 8:08:31 PM Karuna P Joshi wrote: > > > >> $header = "Content-Type: text/xml\r\n"; > > > >> $header .= " X-User: admin\r\n"; > > > >> $header .= " X-Pass: password\r\n"; > > > >> $header .= " X-APIVERSION: 2\r\n"; > > Karuna, > > You also need to remove the spaces at the beginning of each string like: > > $header = "Content-Type: text/xml\r\n"; > $header .= "X-User: admin\r\n"; > $header .= "X-Pass: password\r\n"; > $header .= "X-APIVERSION: 2\r\n"; > > Josh > - -- > - ------------------------------- > Josh Thompson > VCL Developer > North Carolina State University > > my GPG/PGP key can be found at pgp.mit.edu > > All electronic mail messages in connection with State business which > are sent to or received by this account are subject to the NC Public > Records Law and may be disclosed to third parties. > -----BEGIN PGP SIGNATURE----- > Version: GnuPG v2.0.17 (GNU/Linux) > > iEYEARECAAYFAlAj26UACgkQV/LQcNdtPQMKRgCbBPyZ4IJvyWl2tpfZZc+eJmc4 > VZ4AnAnhNwglOFLG6CfIkjcMKBkOtB0Z > =PIQl > -----END PGP SIGNATURE----- > > -- regards, Karuna ____________________ Karuna Pande Joshi PhD Candidate, CSEE Dept, UMBC [email protected], [email protected]
