LR Script issue with PUT request

323 views
Skip to first unread message

Kesava Prasad

unread,
Oct 17, 2012, 1:34:44 PM10/17/12
to lr-loa...@googlegroups.com
Hi All,

I am facing one problem with LR scripting. I am using LR 9.5 and web protocol (HTTP/HTML).

I am clicking Day/week/month icon in my application. These icons are left side of the application. Whenever I click the icon the respective data displayed on the right hand side.

Click on icon some request goes to server in PUT method but I did not get any response from the server.

web_custom_request("Test",
"URL=xxxx/app/calendar/calendar/0",
"Method=PUT",
"reccontenttype=application/oct-stream",
"Enctype=application/json,charset utf-8",
"Refer=xxxxx/.....",
"Body=\{"view:\"agendaday\"\}"

How to retrieve the response from the server. I captured response/request header and did not get any information. Enable all the logging option even did not get any information. Please help us to resolve the issue and how to handle PUT request. Is there any hidden data in the PUT request with content type as oct-stream?

Thanks,
Prasad

Kevyland

unread,
Oct 18, 2012, 9:27:15 AM10/18/12
to LR-Loa...@googlegroups.com, lr-loa...@googlegroups.com
Does the web server handle the put or delete?
 

vinod

unread,
Oct 22, 2012, 10:01:04 AM10/22/12
to lr-loa...@googlegroups.com
In the web_custom_request you copied i have seen one error, the
recconent type should be Json not oct-stream.

reccontenttype and enctype shd be same, we will add only charset utf-8
in enctype.

web_custom_request("Test",
>> "URL=xxxx/app/calendar/calendar/0",
>> "Method=PUT",
>> "reccontenttype=application/json",////////////////////////Not oct-stream
>> "Enctype=application/json,charset utf-8",
>> "Refer=xxxxx/.....",
>> "Body=\{"view:\"agendaday\"\}"
>>

if it doesnt work, try pliug-in tool Poster. it will help you very much

Thanks
vinod
> --
>
>
Reply all
Reply to author
Forward
0 new messages