简体   繁体   中英

Fiddler - Change HTTP Request Header

I wish to create a HTTP request header using Fiddler.

I have a Service running which exposes a Method, which has an object parameter. The object looks like this:

    [DataMember]
    public string Name { get; set; }
    [DataMember]
    public string Data { get; set; }
    [DataMember]
    public string Details { get; set; }
    ....

Does anyone know how I can populate these objects and send them to my WCFServices? I am using localhost.

Solved by:

Opening Fiddler, clicking on Composer, adding:

Content-Type: application/json; charset=utf-8 Content-Type: application/json; charset=utf-8 In the Parsed tab.

And Key pair values in the Request Body, eg:

{
   "Name" : "Arnold",
   "Data" : "SomeDataHere"
}

how I can populate these objects

Take a look at SOAP UI or at the WCF Test Client .

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM