login about faq

Hi, i want to reproduce this curl request (PHP) with chilkat in vb.net

$parameters = array( 'action' => 'import', 'controller' => 'Defect', ); $url .= '&'.http_build_query(array('tx_itkdefectdetector_frontend' => $parameters)); $curlArray = array( CURLOPT_POST => 1, CURLOPT_POSTFIELDS => array('tx_itkdefectdetector_frontend[jsonData]'=>$jsonData), CURLOPT_FOLLOWLOCATION => 1, CURLOPT_HEADER => 0, CURLOPT_RETURNTRANSFER => 1, CURLOPT_TIMEOUT => 10, CURLOPT_VERBOSE => 1, ); $curl = curl_init($url); curl_setopt_array($curl, $curlArray);

the url is something like this

https://mm.itk-rheinland.de/index.php?id=4&type=xxxxxxx&tx_itkdefectdetector_frontend[actio n]=import&tx_itkdefectdetector_frontend[controller]=Defect&tx_itkdefectdetector_frontend[jsonD ata]={jsonData}

The json is in string form, but can have image data (base64_encode)m included in the post, so it becomes to long for an URL request.

Can someone point me to the correct way posting it from code in vb.net

THX

Martin

asked Jul 28 at 05:07

mgarub's gravatar image

mgarub
1


See this example:

https://www.example-code.com/vbnet/http_postUrlEncoded.asp

Set each of the request query params by calling req.AddParam, including the case for the large JSON document.

link

answered Aug 09 at 12:06

chilkat's gravatar image

chilkat ♦♦
12.8k317367485

Your answer
toggle preview

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Markdown Basics

  • *italic* or __italic__
  • **bold** or __bold__
  • link:[text](http://url.com/ "title")
  • image?![alt text](/path/img.jpg "title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported

Tags:

×4

Asked: Jul 28 at 05:07

Seen: 354 times

Last updated: Aug 09 at 12:06

powered by OSQA