Jump to content

Recommended Posts

Posted

I'm working on a Google Voice UDF for AutoIt and ran into a small problem. I'm using the IE UDF and Google is pushing the JSON data with that "application/octet-stream" header or the "application/force-download" hack, that forces IE to prompt to download the file, rather than displaying it in the render area.

I'm expecting to be able to read the JSON data into an AutoIt variable.

I see a few options...
 

1.) Figure out how to do that with the IE UDF. Dale, it's been a bit since I last asked you for help.  :bye: 

2.) Use the WinHTTP stuffs with a custom cookie container of some sort.

 

Should I use the IE UDF or try going a different route?

SIGNATURE_0X800007D NOT FOUND

  • 3 months later...
Posted (edited)

I prefer to make the request directly using Inet.au3.  Here is a set of scripts heavily based on the work of other forum contributors and mangled by yours truly.  I only take credit for the mangling.

This will give you the raw request data instead of a file download.

; untested usage example
#include "HTTP.au3"

Local $aResponse[3]
$aResponse = HTTP_Request('http://google.com', "", "", "", "", "", "")
msgbox(0,"",$aResponse[0])
msgbox(0,"",$aResponse[1])
msgbox(0,"",$aResponse[2])

HTTP.au3

Edited by Gabriel12345

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...