[Rexxcurl-users] How to use GET again after doing POST?
Brought to you by:
rexx
|
From: Dave W. <da...@wa...> - 2002-02-12 12:28:53
|
If I open a curl session, and do a POST, I can't seem to be able to get back to doing a GET afterwards. I tried this (after setting up url etc) /* do a post */ post.0 = 1 post.1 = 'this=that' call curlsetopt curl, 'HTTPPOST', 1 call curlsetopt curl, 'HTTPPOSTFIELDS', 'POST.' call curlperform curl /* then try to do a get - but it does a post */ call curlsetopt curl, 'HTTPPOST', 0 post.0 = 0 call curlsetopt curl, 'HTTPPOSTFIELDS', 'POST.' call curlperform curl Switching on verbose output identifies the 2nd request as a POST also. Setting the HTTPPOSTFIELDS to zero was an attempt to fix this, but they seem to have been remembered anyway, as this=that still gets sent on the 2nd request. Am I missing something here? Cheers, Dave |