Welcome To The Home Of The Visual FoxPro Experts  
home. signup. forum. archives. search. articles. downloads. faq. members. files. rss.
 From: António Lopes
  Where is António Lopes?
 Coimbra
 Portugal
 António Lopes
 To: Thomas Anderson
  Where is Thomas Anderson?
 Neuneger
 Germany
 Thomas Anderson
Subject: RE: "Content-Type" Msxml2.XMLHTTP.6.0 php
Thread ID: 437732 Message ID: 437733 # Views: 41 # Ratings: 1
Version: Visual FoxPro 9 SP2 Category: Web, FTP and other Internet Protocols
Date: Tuesday, June 21, 2016 2:35:22 PM         
   



> How to transform from the php http v1 the property "Content-Type" with it's value into a vfp's object ?
> oXMLHTTP=CREATEOBJECT("Msxml2.XMLHTTP.6.0")
> Must be used oXMLHTTP.setRequestHeader("Content-Type",'multipart/form-data; boundary=---011000010111000001101001') or other method?
>
> $request->setHeaders(array(
> 'content-type' => 'multipart/form-data; boundary=---011000010111000001101001'
> ));


.setRequestHeader() sets one header entry at the time, so it is equivalent to the PHP .setHeaders() you mention if the array passed as argument has only one row (assuming there is no overloading).

For your reference, you should check for the Microsoft's documentation, starting here: https://msdn.microsoft.com/en-us/library/ms764730(v=vs.85).aspx

ENTIRE THREAD

"Content-Type" Msxml2.XMLHTTP.6.0 php Posted by Thom Magneto @ 6/21/2016 2:05:26 PM
RE: "Content-Type" Msxml2.XMLHTTP.6.0 php Posted by António Lopes @ 6/21/2016 2:35:22 PM